Deploys a container with information specified in the Project Container Configuration. When a container is deployed via this operation, any existing container of the same name will be removed and replaced with the newly deployed container. If the deploy should fail for any reason, the old container is restored to the previous state.
Container Status
If the Docker REST API is enabled on your docker installation, you can configure FlexDeploy to have access to start/stop the container as well as view logs.
Environment/Instance Properties
Property Name | Property Code | Required | Description |
---|---|---|---|
Docker Server Address | FDDKR_DOCKER_SERVER | No | The IP address of the Docker server. Required if Docker Unix Socker is not set. |
Docker Port | FDDKR_DOCKER_PORT | No | The port the Docker service is listening on. Required if Docker Unix Socker is not set. |
Docker Unix Socket | FDDKR_UNIX_SOCKET | No | The socket the Docker daemon listens on. Required if Docker Server and Docker Port are not set. |
Project Properties
This operation uses separate Project Configuration for the properties.
Inputs
Input Name | Input Code | Required | Description |
---|---|---|---|
Container Name | FDDKR_INP_CONTAINER_NAME | Yes | The name of the container to be created and run. |
Docker Image | FDDKR_INP_IMAGE_NAME | Yes | The Docker image and tag to use when creating the container. |
Volumes | FDDKR_INP_VOLUMES | No | A comma separated list of volumes to attach to the container. Volume entries should be host:container. |
Exposed Ports | FDDKR_INP_EXPOSED_PORTS | No | A comma separated list of ports to expose on the container and host. (e.g. 8080:28080,22:20022,[ContainerPort]:[HostPort]) |
Additional Params | FDDKR_INP_ADDITIONAL_PARAMS | No | Add any additional parameters not listed above, which will be concatenated to the run command. |
Artifacts
This operation doesn’t consume or produce any artifacts.
Endpoint Selection
This operation delegates the selection to the workflow developer to determine.
Endpoint Execution
This operations delegates the execution to the workflow developer to decide.
Special Considerations
Project Configuration
This operation is automatically added to your deploy workflow as the first step if Run Container is marked as true in your Project Configuration.
Describe any dependencies between properties that may exist or anything that that isn’t really covered above but is relevant to this operation.