[Fuego] [PATCH 3/9] Use curl for downloading Jenkins

Guilherme Campos Camargo guicc at profusion.mobi
Fri Jan 26 17:35:39 UTC 2018


As curl had been used previously in the Dockerfile, let's make it our
preferred tool for downloading resources in your scripts.

Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
---
 Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index b8d78e6..3dbae0f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -125,7 +125,7 @@ ENV JENKINS_HOME=/var/lib/jenkins
 
 RUN groupadd -g ${gid} ${group} \
 	&& useradd -l -m -d "${JENKINS_HOME}" -u ${uid} -g ${gid} -G sudo -s /bin/bash ${user}
-RUN wget -nv ${JENKINS_URL}
+RUN curl -L -O ${JENKINS_URL}
 RUN echo "${JENKINS_SHA} jenkins_${JENKINS_VERSION}_all.deb" | sha1sum -c -
 RUN dpkg -i jenkins_${JENKINS_VERSION}_all.deb
 RUN rm jenkins_${JENKINS_VERSION}_all.deb
-- 
2.15.1



More information about the Fuego mailing list