aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/docker
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-02-04 12:31:31 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-02-04 12:31:31 +0100
commitc1f4b790c458f0de368f32487a007d571858207c (patch)
tree45d7293ea14d0b4249e2e286327b4d8490ff563e /test/docker
parentdebian/README: update (diff)
parentt/i: call links-update twice, just in case (diff)
downloadconfig-links-c1f4b790c458f0de368f32487a007d571858207c.tar.gz
config-links-c1f4b790c458f0de368f32487a007d571858207c.zip
Merge tag 'v2.0.3' into debian
Diffstat (limited to '')
-rw-r--r--test/docker-compose.yml13
-rw-r--r--test/docker/Dockerfile9
2 files changed, 22 insertions, 0 deletions
diff --git a/test/docker-compose.yml b/test/docker-compose.yml
new file mode 100644
index 0000000..76546c4
--- /dev/null
+++ b/test/docker-compose.yml
@@ -0,0 +1,13 @@
+version: '3'
+services:
+ test:
+ build:
+ context: docker/
+ args:
+ DISTRO: "${DISTRO:-xenial}"
+ volumes:
+ - ../:/src
+ command:
+ - sh
+ - -c
+ - /src/test/unit/test.sh && /src/test/integration/test.sh
diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile
new file mode 100644
index 0000000..5d4d016
--- /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 ca-certificates git
+
+RUN git config --global --add safe.directory /src