Module Testcontainers.Container_requestSource

Container request builder with functional configuration pattern

Sourcetype t = {
  1. image : string;
  2. exposed_ports : Port.exposed_port list;
  3. env : (string * string) list;
  4. cmd : string list option;
  5. entrypoint : string list option;
  6. mounts : Volume.mount list;
  7. network : string option;
  8. network_aliases : string list;
  9. name : string option;
  10. labels : (string * string) list;
  11. working_dir : string option;
  12. user : string option;
  13. privileged : bool;
  14. wait_strategy : Wait_strategy.t option;
  15. startup_timeout : float;
  16. auto_remove : bool;
}
Sourceval create : string -> t
Sourceval with_exposed_port : Port.exposed_port -> t -> t
Sourceval with_exposed_ports : Port.exposed_port list -> t -> t
Sourceval with_env : string -> string -> t -> t
Sourceval with_envs : (string * string) list -> t -> t
Sourceval with_cmd : string list -> t -> t
Sourceval with_entrypoint : string list -> t -> t
Sourceval with_mount : Volume.mount -> t -> t
Sourceval with_mounts : Volume.mount list -> t -> t
Sourceval with_network : string -> t -> t
Sourceval with_network_alias : string -> t -> t
Sourceval with_name : string -> t -> t
Sourceval with_label : string -> string -> t -> t
Sourceval with_labels : (string * string) list -> t -> t
Sourceval with_working_dir : string -> t -> t
Sourceval with_user : string -> t -> t
Sourceval with_privileged : bool -> t -> t
Sourceval with_wait_strategy : Wait_strategy.t -> t -> t
Sourceval with_startup_timeout : float -> t -> t
Sourceval with_auto_remove : bool -> t -> t
Sourceval image : t -> string
Sourceval exposed_ports : t -> Port.exposed_port list
Sourceval environment : t -> (string * string) list
Sourceval command : t -> string list option
Sourceval entrypoint : t -> string list option
Sourceval mounts : t -> Volume.mount list
Sourceval network : t -> string option
Sourceval network_aliases : t -> string list
Sourceval name : t -> string option
Sourceval labels : t -> (string * string) list
Sourceval working_dir : t -> string option
Sourceval user : t -> string option
Sourceval privileged : t -> bool
Sourceval wait_strategy : t -> Wait_strategy.t option
Sourceval startup_timeout : t -> float
Sourceval auto_remove : t -> bool
Sourceval to_docker_config : t -> Docker_client.container_config