Skip to main content
Version: Release 23.1

Use the Release Docker Images

This topic describes how the Docker image for Release maintains the same behavior as the existing installation ZIP, ensuring that setup, upgrade, and operational procedures remain consistent.

The directory /opt/xebialabs/xl-release-server contains an extracted installation setup, augmented with a number of directories that are described in Docker images for Release.

To download a docker image for XL-Release, go to Release Docker images.

Set up and start the Docker containers

There are multiple methods to set up and start the Docker image for Release.

For information about running the Release image using Docker Compose, see Running the Docker containers with Docker Compose.

Start containers with quick run commands

important

This setup method does not include persistence and must not be used in production environments.

note

When no volumes are defined, the container will maintain the state between stopping and starting.

  1. Run the Release container with the following command:

    $ docker run -d -p 5516:5516 --name xlr xebialabs/xl-release:8.5

Release will run on http://localhost:5516. You can log in with username: admin and password: admin.

You must provide a valid license before you can log in. Browse to the above URL and paste the license to the product. If you do not have a license yet, apply for an Release trial license.

Secure container setup using a generated password

You can make the setup more secure and start with a generated admin password instead of the default password. Including the Release container in an automated test or use case that depends on using a known admin password is not recommended.

If the environment variable ADMIN_PASSWORD is not set and you are starting up for the first time, the container will generate a random password and print it in the logs.

To trigger this behavior, remove the ADMIN_PASSWORD from the Docker run command:

$ docker run -d -p 5516:5516 -e ADMIN_PASSWORD#secret --name xlr xebialabs/xl-release:9.7

The generated password is printed when the container starts up and can be found at the top of the log file. You can view the logs using the following command:

$ docker logs xlr

Search for the following line:

... Generating admin password: [PASSWORD IS PRINTED HERE]

Stopping and removing containers

To stop the containers, use the following commands:

$ docker stop xlr

The state of the application is saved in the containers. They can be started again using this command:

$ docker start xlr

You can also remove the containers completely:

$ docker rm xlr

note

This will result in a blank slate. When you run the container again with the simple run command, the database will be empty, you will receive a new admin password, and the license must be entered again.

Release setup for production using persistent volumes

note

In production setups, volumes must be defined and Release must be configured to store its state in an external database.

The previous two set-ups do not persist the configuration, repository, and archive data across container runs.

for more information about the Release image, persistence configuration, and examples, see Docker images for Release.

To ensure persistence when reconfiguring, volumes must be mounted at the conf, repository, and archive mount points:

        $ docker run -d -p 5516:5516 \
-v ${HOME}/xl-release-server/conf:/opt/xebialabs/xl-release-server/conf:rw \
-v ${HOME}/xl-release-server/repository:/opt/xebialabs/xl-release-server/repository:rw \
-v ${HOME}/xl-release-server/archive:/opt/xebialabs/xl-release-server/archive:rw \
-v ${HOME}/xl-release-server/reports:/opt/xebialabs/xl-release-server/reports:rw \
--name xlr xebialabs/xl-release:9.7