11# Dachs build
22
3- > ** DaCHS and Debian**
4- >
5- > [ DaCHS version 2.3 is now included in Debian Bullseye main/stable distribution.] ( https://packages.debian.org/bullseye/gavodachs2-server )
6- >
7- > Accordingly, Dachs-on-Docker is now based on ` debian:bullseye ` image.
8-
9-
10- ### TL;DR
113At the simplest, building Dachs is done through:
124
135``` bash
146$ docker build -t dachs .
157$ docker run -it --name some-dachs -p 8080:8080 dachs
168```
179
18- This will create a container with the ` latest ` version of Dachs (using GAVO's repository),
19- and then run it (exposing port 8080 to localhost).
20-
21- > This (default) container runs both _ dachs-server_ and _ postgres_ .
10+ This will create a container with the latest stable version of Dachs,
11+ as available in Debian 'main' repository.
2212
2313
2414## Debian/GAVO repositories
2515_ Par défaut_ , _ dachs_ will be installed from debian-stable (main) repository.
2616If you feel like -- or _ need_ -- to install some upgrade or patch
2717you can make use of Debian backports or GAVO's release/beta repositories.
28- You specify those on the building of the containers.
2918
3019The (` build-arg ` ) option you have to set is ` INSTALL_REPO ` for that.
3120` INSTALL_REPO ` understands the following values:
32- * ` gavo ` : _ default _ . Enables GAVO _ release _ and _ beta _ repositories. You get to check the bleeding edge.
33- * ` backports ` : enables Debian ` bullseye- backports` . You get major versions as upgrades;
34- * ` main ` : . You'll have the same DaCHS for ~ 2 years;
21+ * ` main ` : This is the _ default _ . Stable, uses only Debian ` main ` repository;
22+ * ` backports ` : Enables Debian ` backports ` , you'll get major versions as upgrades;
23+ * ` gavo/beta ` (or ` gavo ` ): Enables GAVO _ release _ and _ beta _ repositories. Minor or custom patches -- directly from the oven -- are here.
3524
36- > Defining ` gavo ` , ` latest ` or _ non_ declaring ` INSTALL_REPO ` have the same effect:
37- > to build the _ latest_ images (i.e, _ gavo_ )
38-
39- The latest/gavo image:
25+ The latest gavo software:
4026``` bash
4127$ docker build --build-arg INSTALL_REPO=' gavo' -t dachs:gavo .
4228$ docker tag dachs:gavo dachs:latest
@@ -47,7 +33,11 @@ To build an image with _backports_ you will do:
4733$ docker build --build-arg INSTALL_REPO=' backports' -t dachs:backports .
4834```
4935
50- Likewise, to build an image with only what's in Debian ` main ` repo:
36+ To build an image with only what's in Debian ` main ` repo:
5137``` bash
5238$ docker build --build-arg INSTALL_REPO=' main' -t dachs:main .
5339```
40+ or, equivalently:
41+ ``` bash
42+ $ docker build -t dachs:main .
43+ ```
0 commit comments