From a24c8fa197773182fdc42dbbfe9e43fe9fc460eb Mon Sep 17 00:00:00 2001 From: Bob Date: Sat, 12 Nov 2022 14:58:32 -0500 Subject: [PATCH] add force overwrite flag when installing glibc on alpine (#1415) Alpine 3.16 includes /etc/nsswitch.conf, which glibc install tries to create. This change adds the force-overwrite flag to the glibc install. --- Dockerfile.alpine | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 091f6654..ed2968ac 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -6,7 +6,7 @@ RUN chmod +x /bin/bb RUN apk --no-cache add curl ca-certificates tar && \ curl -Ls https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk > /tmp/glibc-2.28-r0.apk && \ - apk add --allow-untrusted /tmp/glibc-2.28-r0.apk + apk add --allow-untrusted --force-overwrite /tmp/glibc-2.28-r0.apk RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf # TODO: Run actual native tests when they are ported @@ -21,7 +21,7 @@ FROM alpine:3 RUN apk --no-cache add curl ca-certificates tar && \ curl -Ls https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk > /tmp/glibc-2.28-r0.apk && \ - apk add --allow-untrusted /tmp/glibc-2.28-r0.apk + apk add --allow-untrusted --force-overwrite /tmp/glibc-2.28-r0.apk RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf COPY metabom.jar /opt/babashka-metabom.jar