aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/CONTRIBUTING.md4
-rw-r--r--.github/workflows/test.yaml2
-rw-r--r--Makefile6
3 files changed, 7 insertions, 5 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 6b70ce8..d0a6921 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -13,7 +13,8 @@ Manual invocation is still possible with `make lint`.
## Running snekbox
-Use `docker-compose up` to start snekbox in development mode. The optional `--build` argument can be passed to force the image to be rebuilt.
+Use `docker compose up` to start snekbox in development mode. The optional `--build` argument can be passed to force the image to be rebuilt.
+You must use [compose v2][Compose v2], accessed via `docker compose` (no hyphen).
The container has all development dependencies. The repository on the host is mounted within the container; changes made to local files will also affect the container.
@@ -63,3 +64,4 @@ Other things to look out for are breaking changes to NsJail's config format, its
[readme]: ../README.md
[Dockerfile]: ../Dockerfile
+[Compose v2]: https://docs.docker.com/compose/compose-v2/
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 9e30d49..97fb566 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -39,7 +39,7 @@ jobs:
id: run_tests
run: |
export IMAGE_SUFFIX='-venv:${{ inputs.version }}'
- docker-compose run \
+ docker compose run \
--rm -T -e COVERAGE_DATAFILE=.coverage.${{ matrix.os }} \
--entrypoint coverage \
snekbox \
diff --git a/Makefile b/Makefile
index 7242c25..a385a8e 100644
--- a/Makefile
+++ b/Makefile
@@ -26,8 +26,8 @@ lint: setup
# Fix ownership of the coverage file even if tests fail & preserve exit code
.PHONY: test
test:
- docker-compose build -q --force-rm
- docker-compose run --entrypoint /bin/bash --rm snekbox -c \
+ docker compose build -q --force-rm
+ docker compose run --entrypoint /bin/bash --rm snekbox -c \
'coverage run -m unittest; e=$?; chown --reference=. .coverage; exit $e'
.PHONY: report
@@ -40,4 +40,4 @@ build:
.PHONY: devsh
devsh:
- docker-compose run --entrypoint /bin/bash --rm snekbox
+ docker compose run --entrypoint /bin/bash --rm snekbox