DaCHS and Debian
DaCHS version 2.3 is now included in Debian Bullseye main/stable distribution.
Accordingly, Dachs-on-Docker is now based on
debian:bullseye
image.
At the simplest, building Dachs is done through:
$ docker build -t dachs .
$ docker run -it --name some-dachs -p 8080:8080 dachs
This will create a container with the latest
version of Dachs (using GAVO's repository),
and then run it (exposing port 8080 to localhost).
This (default) container runs both dachs-server and postgres.
Par défaut, dachs will be installed from debian-stable (main) repository. If you feel like -- or need -- to install some upgrade or patch you can make use of Debian backports or GAVO's release/beta repositories. You specify those on the building of the containers.
The (build-arg
) option you have to set is INSTALL_REPO
for that.
INSTALL_REPO
understands the following values:
gavo
: default. Enables GAVO release and beta repositories. You get to check the bleeding edge.backports
: enables Debianbullseye-backports
. You get major versions as upgrades;main
: . You'll have the same DaCHS for ~2 years;
Defining
gavo
,latest
or non declaringINSTALL_REPO
have the same effect: to build the latest images (i.e, gavo)
The latest/gavo image:
$ docker build --build-arg INSTALL_REPO='gavo' -t dachs:gavo .
$ docker tag dachs:gavo dachs:latest
To build an image with backports you will do:
$ docker build --build-arg INSTALL_REPO='backports' -t dachs:backports .
Likewise, to build an image with only what's in Debian main
repo:
$ docker build --build-arg INSTALL_REPO='main' -t dachs:main .