package obuilder

  1. Overview
  2. Docs

Module Obuilder.DockerSource

Docker interface over the CLI tool

Sourcetype ids = [
  1. | `Docker_container of string
  2. | `Docker_image of string
  3. | `Docker_volume of string
  4. | `Obuilder_id of string
]
Sourceval set_prefix : string -> unit

Set the prefix for Docker images, containers, and volumes managed by the current OBuilder instance.

Sourceval obuilder_libexec : unit -> string
Sourceval obuilder_libexec_volume : ?readonly:bool -> unit -> Config.Mount.t
Sourceval image_name : ?tmp:bool -> S.id -> string
Sourceval container_name : S.id -> string
Sourceval volume_copy_name : ?tmp:bool -> S.id -> string
Sourceval docker_image : ?tmp:bool -> S.id -> [> `Docker_image of string ]
Sourceval docker_container : S.id -> [> `Docker_container of string ]
Sourceval docker_volume_cache : ?tmp:bool -> S.id -> [> `Docker_volume of string ]
Sourceval docker_volume_copy : ?tmp:bool -> S.id -> [> `Docker_volume of string ]
Sourceval mount_point_inside_unix : string

Mount point of Docker volumes inside Docker containers, Unix path style. Use with Cygwin tools.

Sourceval mount_point_inside_native : string

Mount point of Docker volumes inside Docker containers, native path style.

Sourceval mount_args : Config.Mount.t -> string list

Get the CLI arguments to the Docker client to mount a volume.

Sourceval bash_entrypoint : string -> string list

Get a Bash entrypoint in a Docker container to execute Bash scripts.

Sourceval default_entrypoint : string list

Get the default entrypoint of Docker container according to the host (Windows is cmd, everywhere else is sh).

Sourceval setup_command : entp:string list -> cmd:string list -> string * string list

setup_command ~entp ~cmd returns the head of entp, to be give to Docker's --entrypoint, and the concatenation of the tail of head and cmd to be given to Docker command, as Docker --entrypoint takes only one argument.

Sourceval cp_between_volumes : base:[< `Docker_image of string ] -> src:[< `Docker_volume of string ] -> dst:[ `Docker_volume of string ] -> (unit, [> `Msg of string ]) Lwt_result.t
Sourcemodule Cmd : S.DOCKER_CMD with type 'a log = ?stdout:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> ?stderr:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> 'a and type 'a logerr = ?stderr:[ `Dev_null | `FD_move_safely of Os.unix_fd ] -> 'a

Wrappers for various Docker client commands, exposing file descriptors.

Sourcemodule Cmd_log : S.DOCKER_CMD with type 'a log = log:Build_log.t -> 'a and type 'a logerr = log:Build_log.t -> 'a

Wrappers for various Docker client commands, logging directly to the Build_log.

Fetch (pull and extract) base images using Docker

OCaml

Innovation. Community. Security.