Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ocaml/opam:archive avoid dropping previously accessible archives #248

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/pipeline.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ let maybe_install_secondary_compiler (run : 'a run) os_family switch =

let install_package_archive opam_image =
let open Dockerfile in
from ~alias:"opam-archive" "ocaml/opam:archive" @@
from ~alias:"archive" opam_image @@
workdir "/home/opam/opam-repository" @@
run ~mount:(mount_bind ~target:"/cache" ~from:"opam-archive") "rsync -aH /cache/cache/ /home/opam/opam-repository/cache/" @@
run "opam admin cache --link=/home/opam/opam-repository/cache" @@
from "alpine:latest" @@
copy ~chown:"0:0" ~from:"archive" ~src:["/home/opam/opam-repository/cache"] ~dst:"/cache" ()
Expand Down