Docker.Commands.Build (docker_wrapper v0.1.2)

Copy Markdown View Source

Implements the Docker.Command behaviour for docker build.

Examples

import Docker.Commands.Build

"."
|> new()
|> tag("myapp:latest")
|> build_arg("VERSION", "1.0")
|> no_cache()
|> Docker.build()

Summary

Types

t()

@type t() :: %Docker.Commands.Build{
  build_args: [{String.t(), String.t()}],
  cache_from: [String.t()],
  context: String.t(),
  extra_args: [String.t()],
  file: String.t() | nil,
  force_rm: boolean(),
  labels: [{String.t(), String.t()}],
  network: String.t() | nil,
  no_cache: boolean(),
  platform: String.t() | nil,
  pull: boolean(),
  quiet: boolean(),
  rm: boolean(),
  tags: [String.t()],
  target: String.t() | nil
}

Functions

build_arg(cmd, key, value)

cache_from(cmd, c)

file(cmd, f)

force_rm(cmd)

label(cmd, key, value)

network(cmd, n)

new(context)

no_cache(cmd)

platform(cmd, p)

pull(cmd)

quiet(cmd)

raw(cmd, args)

rm(cmd)

tag(cmd, t)

target(cmd, t)