package dockerfile

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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 opamhome : string

The location of the opam user home directory

val opam_init : ?repo:string -> ?compiler_version:string -> unit -> Dockerfile.t

opam_init ?repo ?compiler_version initialises the OPAM repository. The repo is git://github.com/ocaml/opam-repository by default. If compiler-version is specified, an opam switch is executed to that version. If unspecified, then the system switch is default.

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_ext_plugin : Dockerfile.t

Installs the external dependency plugin shell script.

val header : string -> string -> Dockerfile.t

header image tag initalises a fresh Dockerfile using the image:tag as its base.

val generate_dockerfiles : string -> (string * Dockerfile.t) list -> unit

generate_dockerfiles output_dir (name * docker) will output a list of Dockerfiles inside the output_dir/name subdirectory, with each directory containing the Dockerfile specified by docker.

OCaml

Innovation. Community. Security.