mirror of
https://github.com/Cian-H/pinp_test.git
synced 2025-12-22 12:11:58 +00:00
Designed and implemented pinp test
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
4
entrypoint.sh
Normal 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
7
inner/Dockerfile
Normal 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
3
inner/entrypoint.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
echo "Inner container working"
|
||||
echo
|
||||
echo "SUCCESS!"
|
||||
Reference in New Issue
Block a user