Designed and implemented pinp test

This commit is contained in:
2025-09-25 09:48:34 +01:00
commit c399f505bb
4 changed files with 25 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -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

4
entrypoint.sh Normal file
View File

@@ -0,0 +1,4 @@
echo "Outer container working"
echo
podman build -t inner-test /inner && \
podman run inner-test

7
inner/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM docker.io/library/alpine:latest
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT /entrypoint.sh

3
inner/entrypoint.sh Normal file
View File

@@ -0,0 +1,3 @@
echo "Inner container working"
echo
echo "SUCCESS!"