Configuring your pipeline to deploy Docker images

If your container infrastructure is ready to run , you can deploy Docker images to your runtime environment.

Deploying initial environments and deploying updated environments use this same method.

The following procedure provides guidelines and tips for setting up your pipeline to deploy environments with your Docker images. The specific steps to deploying environments depends on the software that you chose to support your infrastructure.

Procedure

  1. Ensure that your Docker orchestration tool can connect to your Docker repository.
    For example, if you are using DC/OS Marathon as your orchestration tool and you created four DC/OS agent nodes, ensure that every node can connect to your Docker repository.
  2. Ensure that your pipeline is configured to connect to the configuration management tool, Docker repository, and Docker orchestration tool in your container platform.
    For example, if you are using Jenkins as your pipeline orchestration tool, configure Jenkins environment variables to include:
    • Name-value pairs to authenticate with your configuration management tool (such as Vault).
    • Name-value pairs to connect to and authenticate with your Docker repository (such as DockerHub).
    • Name-value pairs to connect to your Docker orchestration tool (such as DC/OS Marathon master and agent nodes).
  3. (CreateGroup pipeline) Configure a pipeline to create a group where you can organize all related environments into a single group.
    For example, if you plan to create development, QA, staging and production environments for your store, then you would want to group them together. In this pipeline, you need to create a tenant in your configuration management tool so that necessary name-value pairs can be shared between the environments in your group.
  4. (PrepareEnv pipeline) Configure a pipeline to prepare an environment to add to the group and populate environment-related configurations.
    To prepare an environment, you need to create a pipeline where you can specify mandatory and optional Docker configuration parameters such as group name, environment name (like dev/qa/staging/prod), database configurations (db name, db port, db host, db username, db password).
  5. (DeployWCS pipeline) Configure a pipeline to deploy an environment.