Module Dockerfile_gen
val generate_dockerfile : ?fname:string ‑> ?crunch:bool ‑> Fpath.t ‑> Dockerfile.t ‑> (unit, [> Rresult.R.msg ]) Result.resultgenerate_dockerfile output_dir dockerwill output Dockerfile inside theoutput_dirsubdirectory.The
crunchargument defaults to true and applies theDockerfile.crunchoptimisation to reduce the number of layers; disable it if you really want more layers.
val generate_dockerfiles : ?crunch:bool ‑> Fpath.t ‑> (string * Dockerfile.t) list ‑> (unit, [> Rresult.R.msg ]) Result.resultgenerate_dockerfiles output_dir (name * docker)will output a list of Dockerfiles inside theoutput_dir/subdirectory, with each Dockerfile named asDockerfile.<release>.The
crunchargument defaults to true and applies theDockerfile.crunchoptimisation to reduce the number of layers; disable it if you really want more layers.
val generate_dockerfiles_in_directories : ?crunch:bool ‑> Fpath.t ‑> (string * Dockerfile.t) list ‑> (unit, [> Rresult.R.msg ]) Result.resultgenerate_dockerfiles_in_directories output_dir (name * docker)will output a list of Dockerfiles inside theoutput_dir/namesubdirectory, with each directory containing the Dockerfile specified bydocker.The
crunchargument defaults to true and applies theDockerfile.crunchoptimisation to reduce the number of layers; disable it if you really want more layers.
val generate_dockerfiles_in_git_branches : ?readme:string ‑> ?crunch:bool ‑> Fpath.t ‑> (string * Dockerfile.t) list ‑> (unit, [> Rresult.R.msg ]) Result.resultgenerate_dockerfiles_in_git_branches output_dir (name * docker)will output a set of git branches in theoutput_dirGit repository. Each branch will be namednameand contain a singledockerfile. The contents of these branches will be reset, so this should be only be used on anoutput_dirthat is a dedicated Git repository for this purpose. Ifreadmeis specified, the contents will be written toREADME.mdin that branch.The
crunchargument defaults to true and applies theDockerfile.crunchoptimisation to reduce the number of layers; disable it if you really want more layers.