boomi/connector-approval

By boomi

Updated 3 months ago

Image
0

129

Overview

The connector-approval image is used to deploy and automatically approve a new version of a Connector on Boomi AtomSphere.

Image includes:

  • A minimal Alpine base image.
  • Code to scan, upload, and approve your custom connector version in your Boomi AtomSphere developer account.

Note: You must be a Boomi Technology Partner or an internal Boomi Developer in order to use this image.

Versioning

  • This docker repository contains only 2 tags development and release.
  • The current supported version is tagged with release.

Prerequisites

Authentication

This image takes valid Boomi AtomSphere user credentials in order to execute successfully. The recommended way to supply your credentials is by generating an AtomSphere API Token. When you are using a token, be sure to supply the username in the proper format.

For example: BOOMI_TOKEN.developer@partner.com

Note: We must prepend BOOMI_TOKEN. to the username when using tokens.

Privileges

This image uses Connector Deployment AtomSphere APIs, so in order to execute this image successfully, your user must first have appropriate AtomSphere account privileges.

PrivilegeDescription
API AccessUse the Boomi API to access account data.
DeveloperCreate and publish new components using the Boomi SDKs
Connector SubmissionSubmit custom connector/version for public approval

The executing user must have the above privileges assigned in order for this to work.

Connector Project Requirements

In order to use the automated scans, there are certain criteria that must be in place:

  1. The Connector project must be compiled with Gradle or Maven
    1. Gradle projects must include the Gradle wrapper (gradlew script is present)
    2. Maven projects must include the Maven wrapper (mvnw script is present)
      1. You can add a wrapper to your existing Maven project:
        1. To use your current Maven version: mvn wrapper:wrapper
        2. To use a specific Maven version: mvn wrapper:wrapper -Dmaven=3.3.9
  2. The Connector must be source controlled in Bitbucket under the OfficialBoomi workspace
  3. Bitbucket pipelines must be enabled for the repository by your administrator
  4. You must have a bitbucket-pipelines.yml file in the root directory of your repository

How to use this image

This image is intended to be used by internal Boomi Connector developers and Boomi Technology Partners developing Connectors. It should be used in Boomi's Bitbucket workspace, within automated CICD pipelines.

Bitbucket Pipeline Usage

This image is intended to be used within your Bitbucket repository, with Bitbucket Pipelines CI tools.

  • Here is an example step in your Bitbucket repository's bitbucket-pipelines.yml file:
    - step:
        name: Connector Approval
        script:
          - pipe: docker://boomi/connector-approval:release
            variables:
              BOOMI_TOKEN: $BOOMI_TOKEN
              PLATFORM_USERNAME: $PLATFORM_USERNAME
              PLATFORM_PASSWORD: $PLATFORM_PASSWORD
              PLATFORM_ACCOUNT_ID: $PLATFORM_ACCOUNT_ID
              CONNECTOR_GROUP_TYPE: $CONNECTOR_GROUP_TYPE
              CAR_PATH: "build/**/*.zip"
              DEBUG: "true"
        services:
          - docker

Note: The values that start with a $ are replacement variables in Bitbucket. They are used to obfuscate secrets and sensitive information.

Environment Variables

You can adjust the configurations by passing one or more environment variables on the docker run command line or the variables section of your Bitbucket Pipeline step.

VariableRequirementDescription
BOOMI_TOKENRequiredToken provided by the Boomi Technology Partner program. Accessible in Bitbucket pipelines with $BOOMI_TOKEN.
PLATFORM_USERNAMERequiredPlatform username.
If the username is developer@partner.com and you generate an AtomSphere token, then this username may be BOOMI_TOKEN.developer@partner.com
PLATFORM_PASSWORDRequiredPlatform password.
This may be the username login password, or the token that is generated in AtomSphere.
PLATFORM_HOSTOptionalPlatform host URL (defaults to https://platform.boomi.com)
PLATFORM_ACCOUNT_IDRequiredThe account ID associated with the username
CONNECTOR_GROUP_TYPERequiredA valid connector group type from your Account Developer section.
If my account is boomi_dev-L7QK2E and connector group is Test Connector, then my CONNECTOR_GROUP_TYPE might be boomi_dev-L7QK2E-testco. This can be retrieved from the Developer section.
CAR_PATHRequiredEither the path to directory containing the CAR zip, path to the CAR zip file, or wild card designation for the CAR zip file
SOURCESOptionalDirectory of the connector source code. Defaults to src/main directory (following typical conventions)
TEST_SOURCESOptionalDirectory of the connector test code. Defaults to src/test directory (following typical convention)
CHANGE_LOGOptionalIf provided, it will be used in the change log description for the CAR upload (default: Bitbucket pipeline execution information, if available)
DEBUGOptionalSet to true to print out additional DEBUG information during execution

Scan Artifacts

The artifacts generated from this image will be the same as the ones generated by the connector-scan image.

Links

Docker Pull Command

docker pull boomi/connector-approval