ocaml-dockerfile
ocaml-dockerfile copied to clipboard
Remove opam-repository from the dockerfiles created by dockerfile-opam
See https://github.com/ocurrent/docker-base-images/issues/99
To me having opam-repository is a straight downside in every regard. For the few specialized CI systems that require it for some reason they can clone it by hand and rely on the docker cache to offset the time cost.
This is a breaking change and should be announced on Discuss before merging of course. As well as carefully removing uses of opam-repository in the CI systems and Dockerfiles that rely on it.
TODO:
- [x]
opam-health-checkdoes not rely on it (always starts withrm -rf opam-repository) - [x]
opam-repo-cidoes not use it, however its deployment dockerfiles do (fixed by https://github.com/ocurrent/opam-repo-ci/pull/151) - [ ]
ocaml-cirelies on it, as well as its deployment dockerfiles - [x]
oclusteruses a hash for both of its deployment dockerfiles - [x]
ocaml-docs-ciseems to be clear from it in both its dockerfile and internal actions (uses opam repo set-url default ...) - [ ]
ocaml-multicore-ciuses it for both its dockerfiles and internal actions - [ ]
ocurrentuses it for its dockerfile - [ ]
mirage-ciseems to use it for at least its deployment dockerfile but I’m not sure about its internal actions - [x]
ocurrent-deployer’s deployment dockerfile uses a hash for its base image - [ ]
current-bench: no idea - [ ] ...
I still can't form an opinion about this PR without knowing which users it will break (outside of the CI systems above). Perhaps posting on discuss.ocaml.org about the proposed change would be worthwhile first, @kit-ty-kate ?
@kit-ty-kate any updates on this?