From 30a2a7f615252b1ba6b6f68ed668e58cc2bf6d99 Mon Sep 17 00:00:00 2001 From: eschcam Date: Wed, 10 May 2023 13:49:55 +0100 Subject: Add retry option to wget commands Issue-ID: SDC-4495 Signed-off-by: eschcam Change-Id: I3c3a2654daeeb8c7e57b60d5684026aaa0aa0670 --- openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile') diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile index cc34c81f09..6f2e68ec0a 100644 --- a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile +++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile @@ -7,6 +7,7 @@ ARG JETTY_FOLDER=/app/jetty RUN set -ex && \ apk update && \ apk add --no-cache \ + wget \ build-base \ ruby \ ruby-dev \ @@ -31,7 +32,7 @@ RUN mkdir $JETTY_FOLDER && chown onap:onap $JETTY_FOLDER USER onap #Download jetty -RUN wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/${jetty-distribution.version}/jetty-distribution-${jetty-distribution.version}.tar.gz -O $JETTY_FOLDER/jetty.tar.gz && \ +RUN wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/${jetty-distribution.version}/jetty-distribution-${jetty-distribution.version}.tar.gz --tries=3 -O $JETTY_FOLDER/jetty.tar.gz -c && \ tar xvz -C $JETTY_FOLDER -f $JETTY_FOLDER/jetty.tar.gz --strip 1 && \ rm -rf $JETTY_FOLDER/jetty.tar.gz RUN sed -i 's/"jetty"/"onap"/g' $JETTY_FOLDER/etc/jetty-setuid.xml -- cgit 1.2.3-korg