Skip to content

IBM Containers - Process Steps

Bind IP Address

Bind a floating IP address to a running container. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Container Name/IDStringThe name or ID of the container to bind to the IP address.Yes
IP AddressStringThe floating IP address to release from the container cloud service.Yes

Build Image from Dockerfile

Build a Docker image locally or in the private Bluemix repository by using a Dockerfile text document. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Additional ArgumentsStringAdditional command-line arguments to pass when running this command (for example, pull).No
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Dockerfile PathStringThe path to the directory that contains the Dockerfile document used to build the image.Artifacts used in the build must also exist in this directory.Yes
TagStringThe repository name to apply to the created image.Yes

Create Group

Create a container group for scaling containers.

NameTypeDescriptionRequired
Additional ArgumentsStringAny additional argument flags to include with the command, split by a new line.No
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Desired InstancesStringThe number of required container instances. This is the number of containers by default.No
Domain NameStringDomain name to combine with the host name to form the full public route URL (for example, .mybluemix.net).No
Environment VariablesStringSpecify a key value pair for each environment variable to set on the containers. Split multiple variables by using a new line (for example, CSS_BIND_APP=MyApplication).No
Exposed PortStringExpose this port for HTTP traffic on the containers. You cannot include multiple ports for container groups.No
Group NameStringName to assign to the group. Must start with a letter and can include uppercase letters, lowercase letters, numbers, periods, underscores, or hyphens.Yes
Host NameStringHost name to combine with the domain to form the full public route URL.No
Image NameStringThe image to include in each container instance in the container group. You can include commands after the container name (for example, registry.ng.bluemix.net/myimage ping localhost).Yes
Maximum InstancesStringThe maximum number of container instances.No
Minimum InstancesStringThe minimum number of container instances.No

Execute Command On Container

Execute a command on a running container. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Additional ArgumentsStringAdditional command-line arguments to pass when running this command separated by new lines (for example, user USERNAME).No
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
CommandStringThe command to run within the container (for example, cp /root/dependency.jar ${JAVA\_HOME}/lib).No
Container Name/IDStringThe name or ID of the container on which to run a command.No

Initialize Plug-in

Refresh the bearer token for authentication and reinitialize the CLI. This step will also set the output properties cfic.dockerHost and cfic.dockerCertPath. Use these properties to set the host and tlscert with the Docker CLI. This will allow use of the Docker CLI directly for the current session to run supported Docker commands. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No

Install IBM Containers Plug-in

Install the IBM Containers plug-in to run Docker commands from within the Cloud Foundry CLI.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Path To IBM Containers PluginStringOverride the default URL with a local path to the IBM Containers plug-in or a URL path.No

Log in to Cloud Foundry

Log in to the Cloud Foundry instance in order to use the CF Containers CLI.

NameTypeDescriptionRequired
API EndpointStringThe API Endpoint used to connect to the Cloud Foundry web service.Yes
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Cloud Foundry PasswordPasswordThe password to authenticate with your Cloud Foundry instance.Yes
Cloud Foundry User NameStringThe user name to authenticate with your Cloud Foundry instance.Yes
OrganizationStringThe Cloud Foundry Organization that can be accessed according to the users permissions.No
SpaceStringThe Cloud Foundry Space that provides the scope for services, applications, and containers.No

Log out of Cloud Foundry

Log out of the Cloud Foundry instance.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No

Release IP Address

Release an IP address from the container cloud service instance. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
IP AddressStringThe floating IP address to release from the container cloud service.Yes

Remove Group

Remove a container group from the Bluemix repository.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Forced RemovalBooleanForce the removal of a running or failed container.No
Group NameStringName to assign to the group. Must start with a letter and can include uppercase letters, lowercase letters, numbers, periods, underscores, or hyphens.Yes

Request IP Address

Request a new floating IP address that can be used within your container cloud service instance. You must be logged into Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No

Run Container

Start a new container from an image name or ID. You must be logged in to Cloud Foundry

before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Additional ArgumentsStringAdditional command-line arguments to pass when running this command (for example, memory 1024).No
Bind ApplicationStringThe name of the application to bind to the running container.No
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
CommandStringCommand to run on the container (for example, export GROOVY_HOME=/opt/groovy).No
Container NameStringName to assign to the running container.No
Exposed PortsBooleanAutomatically expose any ports specified in the images Dockerfile document for HTTP traffic.No
Image Name/IDStringThe name or ID of the image to use for running the container.Yes
PortsStringSpecify any ports to expose for HTTP traffic on the running container. Split multiple ports by new line.No

Set Namespace

Set the namespace for the targeted organization. Be careful, this namespace cannot be unset. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
NamespaceStringThe namespace to be assigned to uniquely identify your organization in the Bluemix registry. The namespace must start with a lowercase letter and be 430 characters. You can use lowercase letters, numbers, and underscores.No
On FailureEnumeration:
  • fail
  • warn | What to do when the namespace is already set for the organization. A setting of Fail will cause the step to fail and Warn will cause the step to warn but continue with process execution. | No |

Start Containers

Start stopped containers. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Container Names/IDsStringThe names or IDs of the containers to start. Multiple containers separated by new lines.No

Stop Containers

Stop running containers. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Container Name/IDStringThe names or IDs of the containers to start. Multiple containers separated by new lines.No

Unbind IP Address

Unbind the IP address allocated to the specified container. You must be logged in to Cloud Foundry before running this step by either running the Log in to Cloud Foundry step or by manually logging in on the agent computer.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Container Name/IDStringThe name or ID of the container from which to unbind the IP address. If not specified, the container that is currently bound to the specified IP address will be unbound.No
IP AddressStringThe floating IP address to release from the container cloud service.Yes

Uninstall IBM Containers Plug-in

Uninstall the IBM Containers plug-in.

NameTypeDescriptionRequired
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No

Update Group

Update specific options for a container group. You can update only one parameter at a time.

NameTypeDescriptionRequired
Auto RecoveryStringAutomatically restart failed container instances.No
Cloud Foundry CLI PathStringAbsolute path to the Cloud Foundry CLI executable file, specified if it is not already on the system path.No
Desired InstancesStringThe number of required container instances. This is the number of containers by default.No
Group NameStringName to assign to the group. Must start with a letter and can include uppercase letters, lowercase letters, numbers, periods, underscores, or hyphens.Yes
Maximum InstancesStringThe maximum number of container instances.No
Minimum InstancesStringThe minimum number of container instances.No