summaryrefslogtreecommitdiffstats
path: root/molecule/git/Dockerfile.j2
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-07-16 19:26:55 +0200
committerAhmed AbdelHalim <[email protected]>2026-07-17 00:53:41 +0200
commit7097d3dcd4568212b6dcad05b67da064014481fe (patch)
tree5e949284709e468f2259903a9cf12c1075cbbd33 /molecule/git/Dockerfile.j2
parentf9f5449c4f3adeba545fddcaddb6e079a59c9ebf (diff)
Fix testing git service on alpine
Diffstat (limited to 'molecule/git/Dockerfile.j2')
-rw-r--r--molecule/git/Dockerfile.j25
1 files changed, 4 insertions, 1 deletions
diff --git a/molecule/git/Dockerfile.j2 b/molecule/git/Dockerfile.j2
index 4db2119f..482fe6c7 100644
--- a/molecule/git/Dockerfile.j2
+++ b/molecule/git/Dockerfile.j2
@@ -2,6 +2,9 @@ FROM docker.io/library/alpine:3.23
RUN apk add --no-cache python3 openrc \
&& mkdir -p /run/openrc \
- && touch /run/openrc/softlevel
+ && touch /run/openrc/softlevel \
+ && mkdir -p /etc/network \
+ && printf 'auto lo\niface lo inet loopback\n' > /etc/network/interfaces \
+ && rc-update add networking boot
CMD ["/sbin/init"]