diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-15 14:58:20 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-15 14:59:03 +0100 |
commit | 290976bd7775986ff48661088c74b01c4cc82f12 (patch) | |
tree | 762cfba12ec595c6b6c05b1dfbfdc8f215d85e40 /docker | |
parent | 079e737d989020fbc6ec5fecd3529d15016ed2c4 (diff) | |
download | vyos-build-290976bd7775986ff48661088c74b01c4cc82f12.tar.gz vyos-build-290976bd7775986ff48661088c74b01c4cc82f12.zip |
Docker: add retry options when fetching OPAM from GitHub
(cherry picked from commit 1f77d176055e11b1f47039afa7f8492b755ff02e)
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 5c4342d..8aebab8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -97,7 +97,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 |