commit c399f505bb2fcf490947a36f465eaad89a581896 Author: Cian Hughes Date: Thu Sep 25 09:48:34 2025 +0100 Designed and implemented pinp test diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c7b7482 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM docker.io/library/alpine:latest + +COPY ./entrypoint.sh /entrypoint.sh +COPY ./inner/ /inner/ + +RUN apk update && \ + apk add iptables openrc podman podman-openrc && \ + printf "[storage]\ndriver = \"vfs\"\n" > /etc/containers/storage.conf && \ + chmod +x /entrypoint.sh + +ENTRYPOINT /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..6324d50 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +echo "Outer container working" +echo +podman build -t inner-test /inner && \ +podman run inner-test diff --git a/inner/Dockerfile b/inner/Dockerfile new file mode 100644 index 0000000..bc12290 --- /dev/null +++ b/inner/Dockerfile @@ -0,0 +1,7 @@ +FROM docker.io/library/alpine:latest + +COPY ./entrypoint.sh /entrypoint.sh + +RUN chmod +x /entrypoint.sh + +ENTRYPOINT /entrypoint.sh diff --git a/inner/entrypoint.sh b/inner/entrypoint.sh new file mode 100644 index 0000000..315e928 --- /dev/null +++ b/inner/entrypoint.sh @@ -0,0 +1,3 @@ +echo "Inner container working" +echo +echo "SUCCESS!"