containers: Make config path configurable

Container configuration directory can be set in the .env file which is
automatically used by docker-compose.  The default value is the one used
previously (containers/config).
The HACKING.md guide is updated to describe how to set this and how it
affects other commands.
This commit is contained in:
Achilleas Koutsou 2021-01-15 16:24:59 +01:00 committed by Tom Gundersen
parent 4b1581a71c
commit 14183ba10a
3 changed files with 23 additions and 5 deletions

View file

@ -1 +1,2 @@
COMPOSE_PROJECT_NAME=osbuild
CONTAINER_CONFIG_DIR=../containers/config

View file

@ -6,7 +6,7 @@ services:
context: ..
dockerfile: ./distribution/Dockerfile-ubi
volumes:
- ../containers/config:/etc/osbuild-composer
- ${CONTAINER_CONFIG_DIR}/:/etc/osbuild-composer
networks:
net:
ipv4_address: 172.30.0.10
@ -18,7 +18,7 @@ services:
# override the entrypoint to specify composer hostname and port
entrypoint: /usr/libexec/osbuild-composer/osbuild-worker composer:8700
volumes:
- ../containers/config:/etc/osbuild-composer
- ${CONTAINER_CONFIG_DIR}/:/etc/osbuild-composer
environment:
- CACHE_DIRECTORY=/var/cache/osbuild-worker
privileged: true