Class: Avm::Docker::Runner

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Defined in:
lib/avm/docker/runner.rb

Constant Summary collapse

DOC =
<<~DOCOPT
  Manipulate Docker images.

  Usage:
    __PROGRAM__ [options] [-B <build-arg>...] [-E <run-arg>...]
    __PROGRAM__ -h | --help

  Options:
    -h --help     Show this help.
    -n --registry-name=<registry-name>    Docker registry's name.
    -p --push     Push the image to Docker registry.
    -r --run      Run or start a container with builded image.
    -B --build-arg=<build-arg>  Argument for "docker build".
    -E --entrypoint-arg=<run-arg>    Argument for entrypoint on "docker run"
    -c --clear  Remove container if exist before run.
    -S --no-snapshot    Does not add "-snapshot" to image tag.
    -V --no-version   Does not add version to image tag.
DOCOPT

Instance Method Summary collapse

Instance Method Details

#runObject



32
33
34
35
36
37
38
# File 'lib/avm/docker/runner.rb', line 32

def run
  setup
  banner
  build
  push
  container_run
end