From 039019a28f2ddb87598ce4c8311f9464ed7ccd63 Mon Sep 17 00:00:00 2001 From: Fabian von Feilitzsch Date: Tue, 11 Dec 2018 15:44:05 -0500 Subject: [PATCH] add CMD directive to test Dockerfile template --- test/resources/playbooks/docker/Dockerfile.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/resources/playbooks/docker/Dockerfile.j2 b/test/resources/playbooks/docker/Dockerfile.j2 index 0a605536a2..7605e1bcb3 100644 --- a/test/resources/playbooks/docker/Dockerfile.j2 +++ b/test/resources/playbooks/docker/Dockerfile.j2 @@ -12,3 +12,5 @@ RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y pyth elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \ elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \ elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi + +CMD ["sh", "-c", "while true; do sleep 10000; done"]