implement recreate, reload and status, and stop advertising -H

The usage listed recreate but the dispatcher did not know it: myos recreate
exited 2 saying the command was unknown. status was missing too, and -H was
parsed into a variable nothing ever reads, so it was accepted and ignored. It
now refuses rather than pretending.
This commit is contained in:
Yann Autissier
2026-09-05 12:15:05 +02:00
parent f2bcbc6857
commit 60668fc80a
13 changed files with 48 additions and 24 deletions
+2
View File
@@ -87,3 +87,5 @@ chain-print-two | host-project | print-COMPOSE_PROJECT_NAME pri
mk-ssh-no-hosts | app-nogit | ssh
mk-ssh-with-hosts | app-nogit | ssh SSH_HOSTS=example.test ARGS=id
bridge-export | host-project | export STACK=host/consul
cmd-recreate | host-project | recreate host/consul
cmd-status | host-project | status host/consul
@@ -0,0 +1,4 @@
docker network create tester-local
docker network create testhost
docker compose -f @WD@/stack/host/consul.yml -f @MYOS@/share/compose/networks.yml -p testhost --project-directory @WD@/stack/host up -d --force-recreate
[exit 0]
+2
View File
@@ -0,0 +1,2 @@
docker compose -f @WD@/stack/host/consul.yml -f @MYOS@/share/compose/networks.yml -p testhost --project-directory @WD@/stack/host ps
[exit 0]
-4
View File
@@ -1,4 +0,0 @@
@MYOS@/share/make/shim.mk:66: warning: overriding commands for target `.myos.settings.mk'
@MYOS@/share/make/shim.mk:44: warning: ignoring old commands for target `.myos.settings.mk'
docker compose -f @WD@/stack/host/consul.yml -f @MYOS@/share/compose/networks.yml -p testhost --project-directory @WD@/stack/host config
[exit 0]
@@ -1,4 +0,0 @@
@MYOS@/share/make/shim.mk:66: warning: overriding commands for target `.myos.settings.mk'
@MYOS@/share/make/shim.mk:44: warning: ignoring old commands for target `.myos.settings.mk'
would renew the certificates of host/consul host/fabio
[exit 0]
@@ -1,6 +0,0 @@
@MYOS@/share/make/shim.mk:66: warning: overriding commands for target `.myos.settings.mk'
@MYOS@/share/make/shim.mk:44: warning: ignoring old commands for target `.myos.settings.mk'
docker network create tester-local
docker network create testhost
docker compose -f @WD@/stack/host/consul.yml -f @WD@/stack/host/fabio.yml -f @MYOS@/share/compose/networks.yml -p testhost --project-directory @WD@/stack/host up -d
[exit 0]
+7
View File
@@ -0,0 +1,7 @@
make -o docker-stack-recreate MAKE_OLDFILE=docker-stack-recreate ENV=local DOCKER_COMPOSE=docker --log-level=error compose docker-compose-recreate STACK=myos APP_NAME=myos
docker --log-level=error compose --ansi=auto -f @MYOS@/share/compose/networks.yml -p tester-myos-local rm -fs
sh -c docker network create tester-local >/dev/null 2>&1
sh -c docker network create testhost >/dev/null 2>&1
docker --log-level=error compose --ansi=auto -f @MYOS@/share/compose/networks.yml -p tester-myos-local up -d
WARNING: myos[0] host/consul-rule-exists: target host/consul unavailable in app myos
[exit 0]
+4
View File
@@ -0,0 +1,4 @@
make -o docker-stack-ps MAKE_OLDFILE=docker-stack-ps ENV=local DOCKER_COMPOSE=docker --log-level=error compose docker-compose-ps STACK=myos APP_NAME=myos
docker --log-level=error compose --ansi=auto -f @MYOS@/share/compose/networks.yml -p tester-myos-local ps
WARNING: myos[0] host/consul-rule-exists: target host/consul unavailable in app myos
[exit 0]