Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

establish /etc/ssl/cert.pem symlink #346

Merged
merged 1 commit into from
Jan 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions images/02-rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,16 @@ RUN chmod +s /usr/src/image/bin/sudo
RUN mkdir -p /usr/src/image/lib/modules
RUN mkdir -p /usr/src/image/src

# setup /etc/ssl
RUN rm -rf \
/usr/src/image/etc/ssl \
&& mkdir -p /usr/src/image/etc/ssl/certs/ \
&& cp -rf /etc/ssl/certs/ca-certificates.crt /usr/src/image/etc/ssl/certs \
&& ln -s certs/ca-certificates.crt /usr/src/image/etc/ssl/cert.pem

# setup /usr/local
RUN rm -rf /usr/src/image/local && \
ln -s /var/local /usr/src/image/local
RUN rm -rf /usr/src/image/local \
&& ln -s /var/local /usr/src/image/local

# cleanup files hostname/hosts
RUN rm -rf \
Expand All @@ -55,10 +62,7 @@ RUN rm -rf \
/usr/src/image/etc/apk \
/usr/src/image/etc/ca-certificates* \
/usr/src/image/etc/os-release \
/usr/src/image/etc/ssl/* \
&& ln -s /usr/lib/os-release /usr/src/image/etc/os-release && \
mkdir -p /usr/src/image/etc/ssl/certs/ && \
cp -rf /etc/ssl/certs/ca-certificates.crt /usr/src/image/etc/ssl/certs
&& ln -s /usr/lib/os-release /usr/src/image/etc/os-release

RUN rm -rf \
/usr/src/image/sbin/apk \
Expand Down