Container API reference
The container configuration for both Workflow containers and service containers allows multiple options in addition to the image name and version.
Beta feature
This feature is in beta and we do not recommend using it with production applications. Register here for the beta.
The container configuration for both Workflow containers and service containers allows multiple options in addition to the image name and version.
Name |
Description |
---|---|
|
The docker image to use for the the Workflow in container: image: us.gcr.io/my-project/my-image:v2 |
|
The credentials allow you to control the parameters supplied for the container: image: us.gcr.io/my-project/my-image:v2 credentials: username: _json_key_base64 password: $GCP_SERVICE_ACCOUNT # Server is optional if already part of the image server: us-central1-docker.pkg.dev |
|
The username that will be used with the docker login command. |
|
The password that will be used with the docker login command. Use a secretYou can reference a Bitrise Secret to avoid exposing your password in the |
|
The server for the |
|
An array of port mappings that will be be exposed on the host in the format of container: image: python:3.8 ports: - "3000:3000" |
|
List of Environment Variables. Each individual variable must be in its own single length array. Using the env propertyUsing the Workflow level container: image: python:3.8 envs: - MY_VAR: my_value - ANOTHER_VAR: another_value |
|
Used to configure additional Docker container resource options (parameters that will be passed to the Not supported options
|
Name |
Description |
---|---|
|
You can define multiple services per Workflow. All of these services will be created before the Steps of the Workflow are executed. Each service container will be running in the same docker network called bitrise. On top of that the ports defined on a service will be exposed on the host, to be used from non-container workflows. Accessing servicesService containers can be used even when the Workflow itself is not using containers. The only difference is how to access the services. Use the Use localhost to access your service if you are not using a Workflow container. Fore example, |
|
The credentials allow you to control the parameters supplied for the container: image: us.gcr.io/my-project/my-image:v2 credentials: username: _json_key_base64 password: $GCP_SERVICE_ACCOUNT # Server is optional if already part of the image server: us-central1-docker.pkg.dev |
|
The docker image to use for the the Workflow in container: image: us.gcr.io/my-project/my-image:v2 |
|
The username that will be used with the |
|
The password that will be used with the Use a secretYou can reference a Bitrise Secret to avoid exposing your password in the |
|
The server for the |
|
An array of port mappings that will be be exposed on the host in the format of container: image: python:3.8 ports: - "3000:3000" |
|
List of environment variables. Each individual variable must be in its own single length array. Using the env propertyUsing the Workflow level container: image: python:3.8 envs: - MY_VAR: my_value - ANOTHER_VAR: another_value |
|
Used to configure additional Docker container resource options (parameters that will be passed to the Not supported options
|