Skip to content

Commit

Permalink
test: Use foundries' dind
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Sul <[email protected]>
  • Loading branch information
mike-sul committed Sep 18, 2024
1 parent 6f33b24 commit 193cc7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-shell.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
down() {
docker compose --env-file=test/compose/.env.test -f test/compose/docker-compose.yml down --remove-orphans
# remove the docker runtime part
docker volume rm compose_docker-runtime
docker volume rm compose_docker-runtime compose_reset-apps
}

trap down EXIT
Expand Down
6 changes: 5 additions & 1 deletion test/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ services:
- ${REG_DIR}/config.yml:/etc/docker/registry/config.yml

dockerd:
image: docker:25.0.3-dind-alpine3.19
image: ghcr.io/foundriesio/moby:25.0.3_fio
command: ["dockerd", "-D", "-H", "unix:///var/run/docker/docker.sock"]
privileged: true
volumes:
- docker-runtime:/var/run/docker
- ${REG_DIR}/daemon.json:/etc/docker/daemon.json:ro
- reset-apps:/var/sota/reset-apps

composectl:
build:
Expand All @@ -24,6 +25,7 @@ services:
- ${SRC_DIR}:${SRC_DIR}
- ${BIN_DIR}:${SRC_DIR}/bin
- docker-runtime:/var/run/docker
- reset-apps:/var/sota/reset-apps
working_dir: ${SRC_DIR}
depends_on:
- registry
Expand All @@ -32,6 +34,8 @@ services:
- DOCKER_HOST=unix:///var/run/docker/docker.sock
- COMPOSECTL_EXE=${BIN_DIR}/composectl
- SRC_DIR=${SRC_DIR}
- STOREROOT=/var/sota/reset-apps

volumes:
docker-runtime:
reset-apps:

0 comments on commit 193cc7d

Please sign in to comment.