different method?

This commit is contained in:
Hyatt 2023-05-15 08:57:53 -05:00
parent 397d17081d
commit 9ec8427702
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -40,10 +40,11 @@ LABEL org.opencontainers.image.title="alpine"
COPY test-chamber-13.lan.root.crt /usr/local/share/ca-certificates/ 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 && \\ update-ca-certificates --fresh && \\
apk del .packagecache && \\ 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 apk --no-cache upgrade
""" """
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getRetiredRootCA()) writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getRetiredRootCA())