How to Build a Docker Image

To create a Docker image, you need a .tar package from an Adabas installation. Run the script for your desired use case to create the package in the same directory.

For example, to create a package for a single Adabas instance without add-ons:

  1. In a terminal window, go to Software AG installation directory/Adabas/docker/Adabas.

  2. Type sh createAdabasSAGtar.sh Software AG product installation directory, where Software AG product installation directory is the directory containing your Adabas installation.

The created .tar package will have the configuration of the Adabas installation and any custom scripts. A new package must be created every time a configuration change occurs.

Before you build the Docker image, you must specify the values for user ID and group ID in the Dockerfile for each user, including the sag user. Docker creates the sag user during the image creation. This user requires a unique user ID and a group ID in order to create files in the persistent volume, located at /data.

To build the Docker image, enter:

docker build --tag name:tag .