package obuilder

  1. Overview
  2. Docs
Run build scripts for CI

Install

Dune Dependency

Authors

Maintainers

Sources

obuilder-0.4.tbz
sha256=b50d35dac6fe69cbb6a07bd82e922cb0fd842d7d70c60d74001491becdb18b13
sha512=1eb006a9bba83bf1f6006082cf313b03d1b9f6af6ee1faecdcb987731809e7e8f301f8373a02158c81017411f6d18f917b77b320ce78c7a9357175003c77d5d5

doc/src/obuilder/config.ml.html

Source file config.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(** Configuration for a single sandboxed build step.
    This is passed by the builder to the sandbox. *)

open Sexplib.Std

type env = (string * string) list [@@deriving sexp]

module Mount = struct
  type t = { (* TODO: options *)
    src : string;              (* In host namespace *)
    dst : string;              (* In container namespace *)
  }
end

module Secret = struct
  type t = {
    value: string;
    target: string;
  } [@@deriving sexp]
end

type t = {
  cwd : string;
  argv : string list;
  hostname : string;
  user : Obuilder_spec.user;
  env : env;
  mounts : Mount.t list;
  network : string list;
  mount_secrets : Secret.t list;
}

let v ~cwd ~argv ~hostname ~user ~env ~mounts ~network ~mount_secrets =
  { cwd; argv; hostname; user; env; mounts; network; mount_secrets }
OCaml

Innovation. Community. Security.