-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi-node setup should work now; cleaner bootstrapping; `supervisorc…
…tl status` work in any dir; quiet shutdown
- Loading branch information
1 parent
6a95947
commit 13626d1
Showing
5 changed files
with
37 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
#!/bin/zsh -eu | ||
|
||
export FIRST=${FIRST:-""} | ||
# set for `nomad run` of jobs with `podman` driver | ||
podman system service -t 0 & # xxx | ||
# test | ||
# sudo curl -v -s --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info | ||
|
||
if [ ! -e $CONFIG ]; then | ||
# create a new docker image with the bootstrapped version of your cluster | ||
./bin/spinner "Bootstrapping your hind cluster..." /app/bin/bootstrap.sh | ||
./bin/spinner 'cleanly shutting down' /app/bin/shutdown.sh | ||
./bin/spinner 'committing bootstrapped image' podman commit hind-init hind | ||
|
||
else | ||
|
||
# set for `nomad run` of jobs with `podman` driver | ||
podman system service -t 0 & # xxx | ||
# test | ||
# sudo curl -v -s --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info | ||
|
||
exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf | ||
fi | ||
exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
#!/bin/zsh -eu | ||
|
||
# cleanly shutdown so we dont have a dangling supervisord socket at `podman commit` time | ||
# cleanly & quietly shutdown so we dont have a dangling supervisord socket at `podman commit` time | ||
( | ||
cd /etc/supervisor | ||
supervisorctl stop nomad | ||
supervisorctl stop consul | ||
supervisorctl stop consul-template | ||
supervisorctl stop caddy-restarter | ||
supervisorctl shutdown | ||
sleep 5 | ||
|
||
cd /etc/supervisor | ||
supervisorctl stop nomad | ||
supervisorctl stop consul | ||
supervisorctl stop consul-template | ||
supervisorctl stop caddy-restarter | ||
supervisorctl shutdown | ||
sleep 5 | ||
|
||
# we want to persist https certs | ||
mkdir -p /root/.local/share | ||
rm -rf /root/.local/share/caddy | ||
ln -s /pv/CERTS /root/.local/share/caddy | ||
# we want to persist https certs | ||
mkdir -p /root/.local/share | ||
rm -rf /root/.local/share/caddy | ||
ln -s /pv/CERTS /root/.local/share/caddy | ||
) >/dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters