diff options
Diffstat (limited to '')
-rw-r--r-- | test/docker-compose.yml | 5 | ||||
-rw-r--r-- | test/docker/Dockerfile | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 1a4374a..ec55b25 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -1,7 +1,10 @@ version: '3' services: test: - image: "ubuntu:${DISTRO:-xenial}" + build: + context: docker/ + args: + DISTRO: "${DISTRO:-xenial}" volumes: - ../:/src command: /src/test/unit/test.sh diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile new file mode 100644 index 0000000..b67e6f0 --- /dev/null +++ b/test/docker/Dockerfile @@ -0,0 +1,9 @@ +ARG DISTRO=xenial + +FROM ubuntu:$DISTRO + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive \ + apt-get install -y --no-install-recommends git + +RUN git config --global --add safe.directory /src |