diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-21 20:17:11 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-21 20:17:15 +0200 |
commit | 3af293cba20c02b5ab8d8d26fe670af82ff1b78d (patch) | |
tree | 563d4c0849331f235716478bfb186428da04eea6 /test/docker | |
parent | test: shuffle files around (diff) | |
download | config-links-3af293cba20c02b5ab8d8d26fe670af82ff1b78d.tar.gz config-links-3af293cba20c02b5ab8d8d26fe670af82ff1b78d.zip |
t/d: move docker-compose.yml to docker/
Diffstat (limited to 'test/docker')
-rw-r--r-- | test/docker/Dockerfile | 8 | ||||
-rw-r--r-- | test/docker/docker-compose.yml | 8 |
2 files changed, 15 insertions, 1 deletions
diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile index 5d4d016..04e66da 100644 --- a/test/docker/Dockerfile +++ b/test/docker/Dockerfile @@ -4,6 +4,12 @@ FROM ubuntu:$DISTRO RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive \ - apt-get install -y --no-install-recommends ca-certificates git + apt-get install -y --no-install-recommends ca-certificates git make RUN git config --global --add safe.directory /src + +COPY [".", "/src"] + +WORKDIR /src + +CMD ["make", "test/local", "test/linux-home"] diff --git a/test/docker/docker-compose.yml b/test/docker/docker-compose.yml new file mode 100644 index 0000000..552fadb --- /dev/null +++ b/test/docker/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3' +services: + test: + build: + context: ../.. + dockerfile: test/docker/Dockerfile + args: + DISTRO: "${DISTRO:-xenial}" |