From 8d58bb9338830129d136bafc837200a54e064753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9line=20Raill=C3=A9?= <celine.raille@thalesgroup.com> Date: Wed, 2 Aug 2023 08:11:10 +0000 Subject: [PATCH] Check certificate ci --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 566ba068..1e1316f8 100755 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN if [ -f "/kaniko/run/secrets/http_proxy" ]; then export http_proxy=$(cat /ka apt-get install -y ca-certificates #Ajout des certificats -COPY certs/* /usr/local/share/ca-certificates/ +COPY cert[s]/* /usr/local/share/ca-certificates/ RUN update-ca-certificates # Install required packages @@ -52,11 +52,11 @@ RUN if [ -f "/kaniko/run/secrets/http_proxy" ]; then export http_proxy=$(cat /ka && \ rm -rf /var/lib/apt/lists/* -# Build OTB +# Build OTB RUN if [ -f "/kaniko/run/secrets/http_proxy" ]; then export http_proxy=$(cat /kaniko/run/secrets/http_proxy); export https_proxy=$(cat /kaniko/run/secrets/https_proxy); fi && \ mkdir -p /root/otb-build/build && \ cd /root/otb-build && \ - wget --no-check-certificate -q https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-7.4.1.zip -O /tmp/OTB.zip && \ + wget -q --ca-certificate=/usr/local/share/ca-certificates/ca-bundle.crt https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-7.4.1.zip -O /tmp/OTB.zip && \ unzip /tmp/OTB.zip && \ cd /root/otb-build/build && \ cmake \ @@ -115,7 +115,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python && \ RUN if [ -f "/kaniko/run/secrets/http_proxy" ]; then export http_proxy=$(cat /kaniko/run/secrets/http_proxy); export https_proxy=$(cat /kaniko/run/secrets/https_proxy); fi && \ mkdir -p /root/dans-build && \ cd /root/dans-build && \ - wget --no-check-certificate -q https://github.com/gina-alaska/dans-gdal-scripts/archive/refs/heads/master.zip -O /tmp/dans.zip && \ + wget -q --ca-certificate=/usr/local/share/ca-certificates/ca-bundle.crt https://github.com/gina-alaska/dans-gdal-scripts/archive/refs/heads/master.zip -O /tmp/dans.zip && \ unzip /tmp/dans.zip && \ cd dans-gdal-scripts-master && \ ./autogen.sh && \ -- GitLab