Prepare a Docker host server to launch Utility server Docker container

The Utility server Docker container contains a tool we use to set up the WebSphere Commerce database schema and initialize the database. IBM recommends preparing a dedicated server where we can run the Utility server Docker container and initialize all new databases.

When a developer needs to set up a new database, the container can be used to create and initialize the database with the WebSphere Commerce database schema.


Procedure

  1. Install Docker.

    1. Install Docker Version 17.06 or later.

    2. Install Docker Compose Version 1.10 or later.

    3. Consider creating a Docker Unix group.

      If we do not create a Docker Unix group, we will need to prefix sudo to Docker commands

  2. Pull the Utility Docker image from our organization's private Docker registry.

    We only pull the Utility Docker image for now because it contains scripts used to prepare and configure the database. Since the other Docker images total over 6 GB in size, it is quicker to pull this one image only. For example,

      docker pull Docker_registry/commerce/ts-utils:tag

  3. Start the container. For example,

      docker run -e LICENSE=accept --name utils docker_image


What to do next

Use scripts inside the Utility container to encrypt passwords, load the WebSphere Commerce database schema, and optionally load sample data.

Previous topic: Download IBM provided Docker images
Next topic: (Optional) Run Docker images as a non-root user