package obuilder

  1. Overview
  2. Docs

Module Obuilder.Docker_sandboxSource

Sandbox builds using Docker.

include S.SANDBOX
Sourcetype t
Sourceval run : cancelled:unit Lwt.t -> ?stdin:Os.unix_fd -> log:Build_log.t -> t -> Config.t -> string -> (unit, [ `Cancelled | `Msg of string ]) Lwt_result.t

run ~cancelled t config dir runs the operation config in a sandbox with root filesystem dir.

  • parameter cancelled

    Resolving this kills the process (and returns `Cancelled).

  • parameter stdin

    Passed to child as its standard input.

  • parameter log

    Used for child's stdout and stderr.

Sourceval finished : unit -> unit Lwt.t
Sourceval teardown : log:Build_log.t -> commit:bool -> S.id -> unit Lwt.t
Sourceval manifest_from_build : t -> base:S.id -> exclude:string list -> string list -> string -> Obuilder_spec.user -> (Manifest.t list, [> `Msg of string ]) Lwt_result.t
Sourceval copy_from_context : t -> cancelled:unit Lwt.t -> log:Build_log.t -> [< `Copy_item of Manifest.t * string | `Copy_items of Manifest.t list * string ] -> user:Obuilder_spec.user -> src_dir:string -> ?dst_dir:string -> string -> (unit, [ `Cancelled | `Msg of string ]) result Lwt.t
Sourceval copy_from_build : t -> cancelled:'a Lwt.t -> log:Build_log.t -> [< `Copy_item of Manifest.t * string | `Copy_items of Manifest.t list * string ] -> user:Obuilder_spec.user -> workdir:string -> ?dst_dir:string -> from_id:S.id -> S.id -> (unit, [ `Cancelled | `Msg of string ]) result Lwt.t
Sourceval servercore : unit -> [ `Docker_image of string ] Lwt.t

Get the Windows ServerCore image based on the same version as the host.

Sourcemodule Docker_config : sig ... end

Derive Docker command-line client parameters from an OBuilder configuration.

Sourcetype config

The type of sandbox configurations

Sourceval sexp_of_config : config -> Sexplib0.Sexp.t
Sourceval config_of_sexp : Sexplib0.Sexp.t -> config

cmdliner is used for command-line interfaces to generate the necessary flags and parameters to setup a specific sandbox's configuration.

Sourceval create : config -> t Lwt.t

create config is a Docker sandboxing system that is configured using config.

OCaml

Innovation. Community. Security.