Remove opam-repository from the dockerfiles created by dockerfile-opam #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See ocurrent/docker-base-images#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:
opam-health-checkdoes not rely on it (always starts withrm -rf opam-repository)opam-repo-cidoes not use it, however its deployment dockerfiles do (fixed by Make the deployment Dockerfile resistant against changes in the base images opam-repo-ci#151)ocaml-cirelies on it, as well as its deployment dockerfilesoclusteruses a hash for both of its deployment dockerfilesocaml-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 actionsocurrentuses it for its dockerfilemirage-ciseems to use it for at least its deployment dockerfile but I’m not sure about its internal actionsocurrent-deployer’s deployment dockerfile uses a hash for its base imagecurrent-bench: no idea