From 950624d667b52d6ca10f0ebcc2fcc236aa6c86a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Wn=C4=99trzak?= Date: Fri, 4 Oct 2024 09:27:15 +0200 Subject: [PATCH] Update sample template for docker setup hook. "kamal" network is already created (in v2.0) so the sample code is no longer accurate. --- .../cli/templates/sample_hooks/docker-setup.sample | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/kamal/cli/templates/sample_hooks/docker-setup.sample b/lib/kamal/cli/templates/sample_hooks/docker-setup.sample index d914913d5..2fb07d7d7 100755 --- a/lib/kamal/cli/templates/sample_hooks/docker-setup.sample +++ b/lib/kamal/cli/templates/sample_hooks/docker-setup.sample @@ -1,13 +1,3 @@ -#!/usr/bin/env ruby +#!/bin/sh -# 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 +echo "Docker set up on $KAMAL_HOSTS..."