Publishing the Application Microservices Docker Images to a Docker Registry

The Platform allows to configure the creation of the Docker containers hosting the application services and workers through the docker-compose.yml and docker-compose-workers.yml files located in deployment/docker/app.

In the same directory, an .env file defines the environment variables that these configuration files use, and especially the registry where to publish the Docker images, would you want to do so. Until you actually want to, there is no need to change the generated configuration.

APP_DOCKER_REGISTRY=docker-registry.internal.some-company.com

This line defines the environment variable APP_DOCKER_REGISTRY to the same value as the DOCKER_PULL_REGISTRY variable in the project gradle.properties file. For more details, please refer to Chapter Using the Platform Repositories.

If and when you want to publish them, follow the procedure below.

To Publish the Application Microservices Docker Images to a Docker Registry

  1. Modify the value of the DOCKER_PULL_REGISTRY variable in the project gradle.properties file. For more details, please refer to Section Using Gradle Configuration Files.

  2. Run ./gradlew updateCode in the root directory of your project to propagate the above change, in particular to the .env file.

  3. Run ./gradlew docker in the root directory of your project to rebuild the Docker images with the adequate name.

  4. Run ./gradlew dockerPush to publish them.