-
Notifications
You must be signed in to change notification settings - Fork 19
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 opam.ocaml.org the default repo #99
Comments
Examples at present: https://github.com/mirage/mirage-www/blob/master/Dockerfile#L2:
all would become |
I just run into this, and wanted to report that the current "ocaml/opam" docker images are very hard to use - especially for people that are not used to the opam workflow. They have an old version of a git clone of the opam-repository in /home/opam/opam-repository, and the opam is configured in a way that |
Just double-checking: "old" should be no more than a week? |
I don't know exactly. It was in a state where an |
CI dev meeting notes on this. Feeling is that the image should remain as targeting CI primarily, and so the default workflow should be for good Docker hygiene - i.e. focus on reproducibility. In this aspect,
So the existing behaviour remains, but the images advertise that more obviously and provide assistance to go from the CI workflow to the more usual opam one. |
As noted in #98 (comment), the switches created in the base images have
~/opam-repository
as the default remote, soopam update
does nothing, which is a bit surprising for new users to the container images.Any change here will necessarily impact existing users of the images (ocaml-ci, opam-repo-ci, etc.). If we do this, let's do it once (the clever part of this idea is due to @talex5!):
default
remote tohttps://opam.ocaml.org
opam-update-repo-to
which takes a commit and whose job is to update the switch to that commit of opam-repository so that this change only has to be done onceopam update
will then always retrievehttps://opam.ocaml.org
Masking the use of
~/opam-repository
behind a script will also allow future optimisations such as making it a bare repo without breaking images again.The text was updated successfully, but these errors were encountered: