ocaml-dockerfile
ocaml-dockerfile copied to clipboard
Unset the jobs variable from the opam config (faulty opam 2.0 behaviour)
opam 2.0 by default stores the number of cores of the current machine. While not too much of a big deal for users, this is extremely bad for the base images where the number stored will be around 72 but these can be used on any other machines.
This might help fighting the IO overload on the cluster.
The problem doing this in the base is that it breaks 2.0 - opam 2.1 recomputes the jobs variable if it's missing, but opam 2.0 just assumes "1". I think this wants to be in workflows as part of the root upgrade step?
@kit-ty-kate can this be merged now that the opam PR is merged?
@benmandrew the opam PR only fixes things when upgrading to opam 2.2. David’s comment above is still very much the main blocker, so until the images are upgraded to a more recent opam by default this PR can’t be merged.
iiuc, addressing https://github.com/ocurrent/docker-base-images/issues/132 would unblock this.