Module Dockerfile_distro
Run Opam commands across a matrix of Docker containers. Each of these containers represents a different version of OCaml, Opam and an OS distribution (such as Debian or Alpine).
Known distributions and OCaml variants
type t
=[
]
Supported Docker container distributions
val resolve_alias : t ‑> t
resolve_alias t
will resolvet
into a concrete version. This removes versions such asLatest
.
val distros : t list
Enumeration of the supported Docker container distributions
val latest_distros : t list
Enumeration of the latest stable (ideally LTS) supported distributions.
val master_distro : t
The distribution that is the top-level alias for the
latest
tag in theocaml/opam2
Docker Hub build.
val builtin_ocaml_of_distro : t ‑> string option
builtin_ocaml_of_distro t
will return the OCaml version supplied with the distribution packaging, andNone
if there is no supported version.
val tag_of_distro : t ‑> string
Convert a distribution to a Docker Hub tag. The full form of this is
ocaml/TAG
on the Docker Hub.
val distro_of_tag : string ‑> t option
distro_of_tag s
parsess
into at
distribution, andNone
otherwise.
val latest_tag_of_distro : t ‑> string
latest_tag_of_dsistro distro
will generate a Docker Hub tag that is a convenient short form for the latest stable release of a particular distribution. This tag will be regularly rewritten to point to any new releases of the distribution.
val human_readable_string_of_distro : t ‑> string
human_readable_string_of_distro t
returns a human readable version of the distribution tag, including version information.
val human_readable_short_string_of_distro : t ‑> string
human_readable_short_string_of_distro t
returns a human readable short version of the distribution tag, excluding version information.
CPU architectures
Opam build infrastructure support
val active_distros : arch ‑> t list
active_distros arch
returns the list of currently supported distributions in the opam build infrastructure. Distributions that are end-of-life upstream will rotate out of this list regularly.