dash 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kamal/cli/proxy/reboot.rb +15 -6
- data/lib/kamal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8118188e219a5153964fed0aa9e2b1c5fd62d41df06b642d24ad25da953999aa
|
|
4
|
+
data.tar.gz: b12c96d39c801dda4cfb1fa3d5d0c1d12bb9bdff4b6c92749c51af21297ec777
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7eb96275bb6d5e9249871642ad89d027c7928a9fbc356f104739c5a7bf5f7812aa68226a5f350ff8762d04358134f4cc1378f23a0dd7f658e8f26606bbbb4bf
|
|
7
|
+
data.tar.gz: 64fa944cca45985138121a291a7715a0fb744cc5b74859ea325afb2b6286cbf658b31c8431c4d865930620f2695350385a1ce14be037a909494e68c2791c05cb
|
|
@@ -38,6 +38,7 @@ class Kamal::Cli::Proxy::Reboot
|
|
|
38
38
|
def replace_container
|
|
39
39
|
execute *proxy.ensure_proxy_directory
|
|
40
40
|
execute *proxy.ensure_apps_config_directory
|
|
41
|
+
sync_proxy_secrets
|
|
41
42
|
|
|
42
43
|
if proxy.port_holder?
|
|
43
44
|
replace_generation
|
|
@@ -46,18 +47,26 @@ class Kamal::Cli::Proxy::Reboot
|
|
|
46
47
|
end
|
|
47
48
|
end
|
|
48
49
|
|
|
49
|
-
#
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
# Every replacement path below launches a container that reads
|
|
51
|
+
# --env-file at docker run, so the secrets must be on disk before ANY
|
|
52
|
+
# generation starts. This used to live inside stop_and_replace only, and
|
|
53
|
+
# the port-holder paths launched their generation without it — a
|
|
54
|
+
# port-holder reboot on a host without the file died with
|
|
55
|
+
# "open .kamal/proxy/secrets.env: no such file or directory".
|
|
56
|
+
def sync_proxy_secrets
|
|
55
57
|
if (run_config = proxy.proxy_run_config)&.secrets?
|
|
56
58
|
upload! run_config.secrets_io, run_config.secrets_path, mode: "0600"
|
|
57
59
|
else
|
|
58
60
|
# A host keeps no secrets it no longer needs.
|
|
59
61
|
execute *proxy.remove_proxy_secrets_file, raise_on_non_zero_exit: false
|
|
60
62
|
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Phase 1 replacement: stop the old container, start the new one. Brief gap.
|
|
66
|
+
def stop_and_replace
|
|
67
|
+
info "Stopping and removing kamal-proxy on #{host}, if running..."
|
|
68
|
+
execute *proxy.stop(timeout: KAMAL.config.drain_timeout + 10), raise_on_non_zero_exit: false
|
|
69
|
+
execute *proxy.remove_container
|
|
61
70
|
|
|
62
71
|
execute *proxy.run(digest: drift.expected_digest)
|
|
63
72
|
end
|
data/lib/kamal/version.rb
CHANGED