3 Commits

Author SHA1 Message Date
1fb4c387a7 custom ca, 5
Some checks are pending
ci/woodpecker/tag/woodpecker Pipeline is pending
2025-06-04 15:37:48 +02:00
92b61fdae0 custom ca, 4
Some checks are pending
ci/woodpecker/tag/woodpecker Pipeline is pending
2025-06-04 15:35:23 +02:00
4ddb6cfd30 custom ca, 3
Some checks are pending
ci/woodpecker/tag/woodpecker Pipeline is pending
2025-06-04 15:33:14 +02:00

View File

@ -6,7 +6,7 @@ ENV DEFECTDOJO_URL=""
ENV DEFECTDOJO_TOKEN="" ENV DEFECTDOJO_TOKEN=""
ARG APP_DIR=/opt/app ARG APP_DIR=/opt/app
ARG ADDITIONAL_CA_URL="" ARG ADDITIONAL_CA_URL="x"
ARG ADDITIONAL_CA_CHECKSUM="" ARG ADDITIONAL_CA_CHECKSUM=""
RUN \ RUN \
@ -14,11 +14,13 @@ RUN \
adduser -s /bin/sh -D user &&\ adduser -s /bin/sh -D user &&\
mkdir -p $APP_DIR &&\ mkdir -p $APP_DIR &&\
chown user:user $APP_DIR &&\ chown user:user $APP_DIR &&\
if [ "$ADDITIONAL_CA_URL" != "" -a "$ADDITIONAL_CA_CHECKSUM" != "" ]; then \ echo $ADDITIONAL_CA_URL &&\
if [ "$ADDITIONAL_CA_URL" != "x" ]; then \
cd /usr/share/ca-certificates; \ cd /usr/share/ca-certificates; \
wget --no-check-certificate -O custom-ca.crt $ADDITIONAL_CA_URL; \ wget --no-check-certificate -O custom-ca.crt $ADDITIONAL_CA_URL; \
echo "a921e440a742f1e67c7714306e2c0d76 custom-ca.crt" | md5sum -c; \ echo "a921e440a742f1e67c7714306e2c0d76 custom-ca.crt" | md5sum -c; \
/usr/sbin/update-ca-certificates; \ /usr/sbin/update-ca-certificates; \
echo "custom ca added"; \
else \ else \
echo "no additional ca"; \ echo "no additional ca"; \
fi fi