Add proxy boot_config --publish-ip argument

This commit is contained in:
Matthew Croall
2024-11-30 11:10:49 +10:30
parent b9804a07aa
commit 11e4f37409
3 changed files with 14 additions and 3 deletions

View File

@@ -281,6 +281,15 @@ class CliProxyTest < CliTestCase
end
end
test "boot_config set custom bind ip" do
run_command("boot_config", "set", "--publish-ip", "127.0.0.1").tap do |output|
%w[ 1.1.1.1 1.1.1.2 ].each do |host|
assert_match "Running /usr/bin/env mkdir -p .kamal/proxy on #{host}", output
assert_match "Uploading \"--publish 127.0.0.1:80:80 --publish 127.0.0.1:443:443 --log-opt max-size=10m\" to .kamal/proxy/options on #{host}", output
end
end
end
test "boot_config set docker options" do
run_command("boot_config", "set", "--docker_options", "label=foo=bar", "add_host=thishost:thathost").tap do |output|
%w[ 1.1.1.1 1.1.1.2 ].each do |host|