-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Unable to get past this error. I've tried running these bits manually and they seem to work.
=> ERROR [13/44] RUN curl https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh --output /tmp/ 1.3s
------
> [13/44] RUN curl https://raw.githubusercontent.com/ocaml/opam/master/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.12.0 --disable-sandboxing --no-setup:
0.130 % Total % Received % Xferd Average Speed Time Time Time Current
0.130 Dload Upload Total Spent Left Speed
100 61176 100 61176 0 0 570k 0 --:--:-- --:--:-- --:--:-- 574k
0.239 ## Downloading opam 2.3.0 for linux on arm64...
1.221 ## Downloaded.
1.221 ## Where should it be installed ? [/usr/local/bin]
------
Dockerfile:140
--------------------
139 | # Installing OCAML needed to compile libvyosconfig
140 | >>> RUN curl https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh \
141 | >>> --output /tmp/opam_install.sh --retry 10 --retry-delay 5 && \
142 | >>> sed -i 's/read BINDIR/BINDIR=""/' /tmp/opam_install.sh && sh /tmp/opam_install.sh && \
143 | >>> opam init --root=/opt/opam --comp=${OCAML_VERSION} --disable-sandboxing --no-setup
144 |
--------------------
ERROR: failed to solve: process "/bin/sh -c curl https://raw.githubusercontent.com/ocaml/opam/master/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=${OCAML_VERSION} --disable-sandboxing --no-setup" did not complete successfully: exit code: 1
I was able to get it installed manually, maybe a bypass of this step if it's already installed?
root@debian-gnu-linux-12-6:/home/parallels/vyos-arm64-builder# opam
[WARNING] Running as root is not recommended
usage: opam [--version]
[--help]
<command> [<args>]
The most commonly used opam commands are:
init Initialize opam state, or set init options.
list Display the list of available packages.
show Display information about specific packages.
install Install a list of packages.
remove Remove a list of packages.
update Update the list of available packages.
upgrade Upgrade the installed package to latest version.
config Display configuration options for packages.
repository Manage opam repositories.
switch Manage multiple installation prefixes.
pin Pin a given package to a specific version or source.
admin Tools for repository administrators
See 'opam help <command>' for more information on a specific command.
Metadata
Metadata
Assignees
Labels
No labels