You can build a sample IBM® Integration Bus Docker image.
To run IBM Integration Bus in a Docker container, you must first build a base image containing an installation of IBM Integration Bus, by following the steps described in this topic. You can, alternatively, download an image of the IBM Integration Bus for Developers edition from https://hub.docker.com/r/ibmcom/iib/ and run this in a Docker container.
A Dockerfile is a set of
instructions for building a Docker image. Images can be stored in
local or remote registries, and are used to create a running Docker
container. To build the image, Docker executes the instructions in
the Dockerfile. Each instruction causes a new image layer to be created.
Docker best practice guidelines recommend that you keep the number
of Dockerfile instructions to a minimum, because the number of layers
in an image might be limited. The guidelines, which are available
at https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices, suggest that you “find
the balance between readability (and thus long-term maintainability)
of the Dockerfile and minimizing the number of layers it uses. Be
strategic and cautious about the number of layers you use.”
The FROM instruction takes advantage of the layering capability in Docker images; for example, an IBM Integration Bus image could be built on top of an Ubuntu image. You could also build IBM Integration Bus images that build on top of images containing IBM MQ.
The following GitHub repository contains
a Dockerfile and some scripts that show one way in which you can build
an IBM Integration Bus Docker image: https://github.com/ot4i/iib-docker.
The following steps show how to build a sample base image, using scripts that are hosted on GitHub: