package dockerfile
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=2fa15cad381c194ee076c3833f89d318418eb96aeed98d07f2a85fc4828c0dec
md5=1c476efd74bd1eb6d2c28edd7a7cd815
doc/dockerfile.opam/Dockerfile_opam/index.html
Module Dockerfile_opam
Rules for generating Dockerfiles involving OPAM
module RPM : sig ... end
RPM distribution specific rules involving OPAM and OCaml
module Apt : sig ... end
Apt distribution specific rules involving OPAM and OCaml
val run_as_opam : ('a, unit, string, Dockerfile.t) format4 -> 'a
run_as_opam fmt
runs the command specified by the fmt
format string as the opam
user.
val opam_init :
?branch:string ->
?repo:string ->
?need_upgrade:bool ->
?compiler_version:string ->
unit ->
Dockerfile.t
opam_init ?branch ?repo ?need_upgrade ?compiler_version
initialises the OPAM repository. The repo
is git://github.com/ocaml/opam-repository
by default and branch
is master
by default. If compiler-version
is specified, an opam switch
is executed to that version. If unspecified, then the system
switch is default. need_upgrade
will run opam admin upgrade
on the repository for the latest OPAM2 metadata format.
val install_opam_from_source :
?prefix:string ->
?branch:string ->
unit ->
Dockerfile.t
Commands to install OPAM via a source code checkout from GitHub. The branch
defaults to the 1.2
stable branch. The binaries are installed under <prefix>/bin
, defaulting to /usr/local/bin
.
val install_cloud_solver : Dockerfile.t
install_cloud_solver
will use the hosted OPAM aspcud service from IRILL. It will install a fake /usr/bin/aspcud
script that requires online connectivity.
val header : ?maintainer:string -> string -> string -> Dockerfile.t
header image tag
initalises a fresh Dockerfile using the image:tag
as its base.