-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.mli
35 lines (30 loc) · 1.13 KB
/
build.mli
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
35
module Context : sig
type t
val v :
?switch:Lwt_switch.t ->
?env:Config.env ->
?user:Obuilder_spec.user ->
?workdir:string ->
?secrets:(string * string) list ->
shell:string list ->
log:S.logger ->
src_dir:string ->
unit -> t
(** [context ~log ~src_dir] is a build context where copy operations read from the (host) directory [src_dir].
@param switch Turn this off to cancel the build.
@param env Environment in which to run commands.
@param user Container user to run as.
@param workdir Directory in the container namespace for cwd.
@param shell The command used to run shell commands (default [["/usr/bin/env"; "bash"; "-c"]]).
@param secrets Provided key-value pairs for secrets.
@param log Function to receive log data.
*)
end
module Make (Store : S.STORE) (Sandbox : S.SANDBOX) (_ : S.FETCHER) : sig
include S.BUILDER with type context := Context.t
val v : store:Store.t -> sandbox:Sandbox.t -> t
end
module Make_Docker (Store : S.STORE) : sig
include S.BUILDER with type context := Context.t
val v : store:Store.t -> sandbox:Docker_sandbox.t -> t
end