Improve and fix tests (#36)

* Parameterize test images.

* Use different images, similar to ansible/ansible#72698.
This commit is contained in:
Felix Fontein
2020-11-23 21:48:46 +01:00
committed by GitHub
parent 1fa2c3b77d
commit 219c6b3a85
55 changed files with 804 additions and 778 deletions
@@ -0,0 +1,3 @@
FROM {{ docker_test_image_busybox }}
ENV foo /bar
WORKDIR ${foo}
@@ -0,0 +1,3 @@
FROM {{ docker_test_image_busybox }}
# This should fail building if docker cannot resolve some-custom-host
RUN ping -c1 some-custom-host
@@ -0,0 +1,5 @@
FROM {{ docker_test_image_alpine }}
ENV INSTALL_PATH /newdata
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH
@@ -0,0 +1,7 @@
FROM {{ docker_test_image_busybox }} AS first
ENV dir /first
WORKDIR ${dir}
FROM {{ docker_test_image_busybox }} AS second
ENV dir /second
WORKDIR ${dir}