Sha256: 0c5813db1784e581b55fc60aa571e5f6bce47523801d7b900b8235d230369383

Contents?: true

Size: 359 Bytes

Versions: 18

Compression:

Stored size: 359 Bytes

Contents

#!/usr/bin/env ruby

# A sample docker-setup hook
#
# Sets up a Docker network on defined hosts which can then be used by the application’s containers

hosts = ENV["KAMAL_HOSTS"].split(",")

hosts.each do |ip|
  destination = "root@#{ip}"
  puts "Creating a Docker network \"kamal\" on #{destination}"
  `ssh #{destination} docker network create kamal`
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
kamal-1.9.2 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.1.1 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.1.0 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-1.9.1 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.0.0 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-1.9.0 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.0.0.rc4 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.0.0.rc3 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.0.0.rc2 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.0.0.rc1 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.0.0.beta2 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.0.0.alpha lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-2.0.0.beta1 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-1.8.3 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-1.8.2 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-1.8.1 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-1.8.0 lib/kamal/cli/templates/sample_hooks/docker-setup.sample
kamal-1.7.3 lib/kamal/cli/templates/sample_hooks/docker-setup.sample