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