give make a single call for the settings the CLI resolves
myos export prints every setting the requested stacks declare, in one process: 68 variables in half a second, where asking for them one at a time costs a process each and about ten seconds. The shim reads that once and includes it, so a .mk target sees HOST_FABIO_VERSION and the computed fabio tag without make knowing anything about how they are produced. --make quotes the values so make neither expands a $ nor starts a comment at a #.
This commit is contained in:
@@ -86,3 +86,4 @@ chain-up-group | host-project | up ps host
|
||||
chain-print-two | host-project | print-COMPOSE_PROJECT_NAME print-APP STACK=host/consul
|
||||
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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
[exit 0]
|
||||
@@ -0,0 +1,4 @@
|
||||
@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]
|
||||
@@ -0,0 +1,4 @@
|
||||
@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]
|
||||
@@ -0,0 +1,6 @@
|
||||
@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]
|
||||
@@ -0,0 +1,2 @@
|
||||
WARNING: myos[0] export-rule-exists: target export unavailable in app myos
|
||||
[exit 0]
|
||||
Reference in New Issue
Block a user