Better Docker environment

This commit is contained in:
Christian Dietrich
2021-08-17 12:47:26 +02:00
parent cba1c2a510
commit ed94692a08
2 changed files with 11 additions and 8 deletions

View File

@ -32,11 +32,12 @@ help:
@echo " ARCH=${ARCH}" @echo " ARCH=${ARCH}"
docker: docker:
@echo Starting Docker with ARCH=$(ARCH) @echo Starting Docker
@echo "ARCH=${ARCH}" > .env.${ARCH} docker-compose up -d
docker-compose --env-file .env.${ARCH} up -d @make shell
docker-compose --env-file .env.${ARCH} run --entrypoint bash shell
shell:
docker-compose exec -e debian_chroot=${ARCH} -e ARCH=${ARCH} shell bash
################################################################ ################################################################
# Download # Download

View File

@ -14,14 +14,16 @@ services:
shell: shell:
image: danceos/fail-ci-build image: danceos/fail-ci-build
container_name: shell
stdin_open: true # docker run -i stdin_open: true # docker run -i
restart: "no" restart: "no"
tty: true # docker run -t tty: true # docker run -t
entrypoint: ["echo", "Service foo disabled"] entrypoint: ["bash", "-c", "while :; do :; done & kill -STOP $$! && wait $$!"]
links: links:
- db - db
environment: working_dir: /home/fail/fail-targets
- ARCH=${ARCH}
volumes: volumes:
- .:/home/fail/fail - .:/home/fail/fail-targets
- ./fail:/home/fail/fail