Skip to content

Commit 181fe17

Browse files
authored
Fixes CA certs
1 parent 881da91 commit 181fe17

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ RUN --mount=type=secret,id=activation_key,env=ACTIVATION_KEY \
1414
then apk add nfs-utils; \
1515
else subscription-manager register --activationkey $ACTIVATION_KEY --org $ORGANIZATION && \
1616
yum install --repo=rhel-9-*-baseos-rpms -y nfs-utils; \
17-
fi
17+
fi; \
18+
# Copy real certificates \
19+
mkdir /real-certs; \
20+
cp -L /etc/ssl/certs/* /real-certs/;
1821

1922
# Get the mount.nfs4 dependency
2023
RUN ldd /sbin/mount.nfs4 | tr -s '[:space:]' '\n' | grep '^/' | xargs -I % sh -c 'mkdir -p /nfs-deps/$(dirname %) && cp -L % /nfs-deps/%'
@@ -31,7 +34,7 @@ COPY --from=deps /sbin/mount.nfs /sbin/mount.nfs4 /sbin/
3134
COPY --from=deps /etc/netconfig /etc/
3235
COPY --from=deps /nfs-deps/ /
3336

34-
COPY --from=deps /etc/ssl/certs/ /etc/ssl/certs/
37+
COPY --from=deps /real-certs/ /etc/ssl/certs/
3538

3639
ARG BIN=trident_orchestrator
3740
ARG CLI_BIN=tridentctl

0 commit comments

Comments
 (0)