Closed Trolldemorted closed 1 month ago
I don't use Docker, so I can't test it, but I think the issue is the opam pin
command is wrong. I think it should be something like opam install .
to install all the packages. I guess it's trying to search the online repository for metadata and failing.
Replacing opam pin -y add sail $PWD
with opam install .
produces the following error message:
=> ERROR [6/6] RUN opam install . 1.9s
------
> [6/6] RUN opam install .:
#10 0.420 [WARNING] Running as root is not recommended
#10 1.883 sail_sv_backend is now pinned to file:///sail-src (version 0.18)
#10 1.894 sail_smt_backend is now pinned to file:///sail-src (version 0.18)
#10 1.896 sail_output is now pinned to file:///sail-src (version 0.18)
#10 1.899 sail_ocaml_backend is now pinned to file:///sail-src (version 0.18)
#10 1.902 sail_manifest is now pinned to file:///sail-src (version 0.18)
#10 1.904 sail_lem_backend is now pinned to file:///sail-src (version 0.18)
#10 1.907 Package sail_lean_backend does not exist, create as a NEW package? [Y/n] n
------
executor failed running [/bin/sh -c opam install .]: exit code: 10
Would be opam install --yes .
then I think. You do want to create as a new package, as it doesn't exist in a released version of Sail yet.
That does make sense, and with RUN opam install --yes .
it builds successfully and a subsequent docker run sail --help
shows me the expected help output 🎉
Should I include the change in https://github.com/rems-project/sail/pull/734?
Yes, if you included it there that would be great!
done!
Thanks for the quick help, having the whole thing containerized reduces the barrier to entry significantly.
To reproduce:
docker build . -t sail -f .\Dockerfile.nightly --no-cache --progress plain
The build fails and you get the following output. The error message says:
Your on-push CI does not try to build the Dockerfile, so it is green.