Skip to content

dune-pkg image variant#357

Draft
frejsoya wants to merge 1 commit into
ocurrent:masterfrom
frejsoya:dune-pkg-dev-image
Draft

dune-pkg image variant#357
frejsoya wants to merge 1 commit into
ocurrent:masterfrom
frejsoya:dune-pkg-dev-image

Conversation

@frejsoya

@frejsoya frejsoya commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

OCaml base Docker image with plain Dune, no opam or repo, but a prebuilt cached compiler. (5.5+). Much smaller in size, and fits a workflow where repo has a precomputed lock.

Pipeline split into independent Pipeline_opam / Pipeline_dune and some shared bits, mostly for a quick an easy poc.

Unclear if this is a good path; it seems a bit silly that you cannot, in a simple way, reuse an opam built with OCaml with Dune.

@frejsoya
frejsoya force-pushed the dune-pkg-dev-image branch 3 times, most recently from e0a9899 to b9b1c1a Compare June 20, 2026 14:13
Split the pipeline into independent opam and dune-pkg paths over shared
helpers (Distro_util). Add an ocaml-base variant for `dune pkg` builds:
ships dune + a baked relocatable compiler, no opam/switch/repo. Scoped to
x86_64, apk/apt distros, OCaml >= 5.5. See docs/adr/0001, 0002.

On tier-1 distros also build compiler variants (+flambda, +afl,
+no-flat-float-array) via the upstream ocaml-options-only-* packages,
mirroring how the opam images install variants.
@frejsoya
frejsoya force-pushed the dune-pkg-dev-image branch from b9b1c1a to 112cb13 Compare June 20, 2026 14:13
@frejsoya frejsoya changed the title dune-pkg image variant (+ compiler variants) dune-pkg image variant Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant