Sha256: 9526e07ff58c73c0b31c4ecf1cd096db265a5f2280f47f0fc1572260dad00fbd
Contents?: true
Size: 587 Bytes
Versions: 4
Compression:
Stored size: 587 Bytes
Contents
module Kubes::Docker class Build < Base def run reserve_image_name build store_image_name end def build # Dockerfile is also used in args/default.rb, will have to combine if Dockerfile is made configurable unless File.exist?("Dockerfile") logger.error "ERROR: The Dockerfile does not exist. Cannot build the docker image without a Dockerfile".color(:red) exit 1 end params = args.flatten.join(' ') command = "docker build #{params}" run_hooks "build" do sh(command) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kubes-0.2.4 | lib/kubes/docker/build.rb |
kubes-0.2.3 | lib/kubes/docker/build.rb |
kubes-0.2.2 | lib/kubes/docker/build.rb |
kubes-0.2.1 | lib/kubes/docker/build.rb |