summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-15 14:58:20 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-15 14:58:20 +0100
commit1f77d176055e11b1f47039afa7f8492b755ff02e (patch)
treefdfb865f8eeee965a9afe24fdd077808316a370d /docker
parentdb9419e62d3760c02561a9e7a3d017e4f6ff3f4f (diff)
downloadvyos-build-1f77d176055e11b1f47039afa7f8492b755ff02e.tar.gz
vyos-build-1f77d176055e11b1f47039afa7f8492b755ff02e.zip
Docker: add retry options when fetching OPAM from GitHub
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 34733195..01075a7a 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -96,7 +96,8 @@ RUN apt-get update && apt-get install -y \
libffi-dev \
libpcre3-dev
-RUN curl https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh --output /tmp/opam_install.sh && \
+RUN curl https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh \
+ --output /tmp/opam_install.sh --retry 10 --retry-delay 5 && \
sed -i 's/read BINDIR/BINDIR=""/' /tmp/opam_install.sh && sh /tmp/opam_install.sh && \
opam init --root=/opt/opam --comp=4.08.0 --disable-sandboxing