objective categorical abstract machine language personal data server

docker: use the opam installed in the build container #3

merged opened by anil.recoil.org targeting main

Just a minor improvement to not re-download an opam since one's installed in the opam container already

Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:nhyitepp3u4u6fcfboegzcjw/sh.tangled.repo.pull/3maqi4irv5i22
+2 -4
Diff #0
+2 -4
Dockerfile
··· 1 1 FROM ocaml/opam:debian-12-ocaml-5.2 AS build 2 2 3 3 ARG NODE_VERSION=v24.11.1 4 - ARG OPAM_VERSION=2.5.0 4 + ARG OPAM_VERSION=2.5 5 5 ARG DUNE_VERSION=3.20.2 6 6 7 7 ARG GIT_REV ··· 9 9 10 10 USER root 11 11 RUN apt-get update && apt-get install -y cmake git libev-dev libffi-dev libgmp-dev libssl-dev libsqlite3-dev libpcre3-dev pkg-config 12 - 13 - RUN bash -c "curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh | bash -s -- --version $OPAM_VERSION" 14 - RUN bash -c "chown opam:opam /bin/opam" 12 + RUN ln -nsf /usr/bin/opam-${OPAM_VERSION} /usr/bin/opam 15 13 USER opam 16 14 17 15 WORKDIR /home/opam/pegasus

History

1 round 3 comments
sign up or login to add to the discussion
expand 3 comments

Also too minor to send a patch for, but switching to OCaml 5.4 from 5.2 for the build also works fine with the dependency cone.

ah, thanks! was running into issues with the included opam binary last time I tried, but it does seem to be building fine now

& thanks for the shout on upgrading; previously spent several days trying to get dependencies to cooperate on 5.3, guess something published an update in the interim

Yeah most things should work on OCaml 5.4; if not feel free to give me a ping on ocaml.zulipchat.com or bsky and I'll take a look -- I'm switching my PDS over to yours so I have a vested interest now ;-)

pull request successfully merged