diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-16 19:26:55 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-17 00:53:41 +0200 |
| commit | 3214723328be67577b48069a52b84ac2d1676084 (patch) | |
| tree | 5e949284709e468f2259903a9cf12c1075cbbd33 /molecule/git/Dockerfile.j2 | |
| parent | 106ff4f46a2fa5961b42ae692e0288c9bb89341b (diff) | |
Fix testing git service on alpine
Diffstat (limited to 'molecule/git/Dockerfile.j2')
| -rw-r--r-- | molecule/git/Dockerfile.j2 | 5 |
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"] |
