From 9ec842770239888c8e8c3b92c8568169ab944985 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Mon, 15 May 2023 08:57:53 -0500 Subject: [PATCH] different method? --- build-alpine.jenkins | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-alpine.jenkins b/build-alpine.jenkins index 9cefcc0..086a420 100644 --- a/build-alpine.jenkins +++ b/build-alpine.jenkins @@ -40,10 +40,11 @@ LABEL org.opencontainers.image.title="alpine" COPY test-chamber-13.lan.root.crt /usr/local/share/ca-certificates/ -RUN apk add --no-cache --virtual=.packagecache ca-certificates && \\ +RUN cat /usr/local/share/ca-certificates/test-chamber-13.lan.root.crt >> /etc/ssl/certs/ca-certificates.crt && \\ + sed -i 's/dl-cdn.alpinelinux.org/nexus.c.test-chamber-13.lan\\/repository/g' /etc/apk/repositories && \\ + apk add --no-cache --virtual=.packagecache ca-certificates && \\ update-ca-certificates --fresh && \\ apk del .packagecache && \\ - sed -i 's/dl-cdn.alpinelinux.org/nexus.c.test-chamber-13.lan\\/repository/g' /etc/apk/repositories && \\ apk --no-cache upgrade """ writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getRetiredRootCA())