Class: Penkit::DockerCompose

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/penkit/docker_compose.rb

Instance Method Summary collapse

Instance Method Details

#up(image, options = {}) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/penkit/docker_compose.rb', line 7

def up(image, options = {})
  docker.create_network!
  env = compose_env(image, options)

  # TODO: find out why exec bombs here (see Penkit::Docker#find_all_containers)
  system(env, "docker-compose", *compose_options(image, options), "up", "-d")
end