Skip to content

Commit

Permalink
Merge pull request aerokube#15 from vania-pooh/master
Browse files Browse the repository at this point in the history
More compact commands for applying certificate
  • Loading branch information
vania-pooh authored Apr 4, 2021
2 parents 4557892 + c5e091e commit 7270f40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ RUN \
apt-get clean && \
rm -Rf /tmp/* && rm -Rf /var/lib/apt/lists/* && \
chmod 777 /etc/ssl/certs && \
rm -Rf /usr/local/share/ca-certificates && \
mkdir /tmp/ca-certificates && \
chmod 777 /tmp/ca-certificates && \
ln -s /tmp/ca-certificates /usr/local/share/ca-certificates
mkdir /tmp/ca-certificates

COPY entrypoint.sh /

Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ XSELD_PID=$!
if env | grep -q ROOT_CA_; then
for e in $(env | grep ROOT_CA_ | sed -e 's/=.*$//'); do
certname=$(echo -n $e | sed -e 's/ROOT_CA_//')
echo ${!e} | base64 -d >/usr/local/share/ca-certificates/${certname}.pem
echo ${!e} | base64 -d >/usr/local/share/ca-certificates/${certname}.crt
done
update-ca-certificates
update-ca-certificates --localcertsdir /tmp/ca-certificates
fi

/usr/bin/xvfb-run -l -n "$DISPLAY_NUM" -s "-ac -screen 0 $SCREEN_RESOLUTION -noreset -listen tcp" /usr/bin/fluxbox -display "$DISPLAY" >/dev/null 2>&1 &
Expand Down

0 comments on commit 7270f40

Please sign in to comment.