Move start-stop order to single config
Now .services file defines list and order of services to start and stop. Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>remotes/1719367847192050886/wallet-connect
parent
959d994ae5
commit
d0cfbcd95a
|
@ -0,0 +1,7 @@
|
|||
# Services start/stop order
|
||||
# Will start from top to bottom and stop in reverse
|
||||
basenet
|
||||
chain
|
||||
morph_chain
|
||||
ir
|
||||
storage
|
5
Makefile
5
Makefile
|
@ -16,12 +16,13 @@ GET_SVCS = $(shell grep -Rl "get.*:" ./services/* | sort -u | grep artifacts.mk
|
|||
PULL_SVCS = $(shell find ./services -type f -name 'docker-compose.yml' | sort -u | xargs -I {} dirname {} | xargs basename -a)
|
||||
|
||||
# Sorted services for running
|
||||
START_SVCS = $(shell find ./services -type f -name '.order' | xargs -I % /bin/bash -c 'echo "$$(cat %) %"' | sort -u | awk '{ print $$2 }' | xargs -I {} dirname {} | xargs basename -a)
|
||||
STOP_SVCS = $(shell find ./services -type f -name '.order' | xargs -I % /bin/bash -c 'echo "$$(cat %) %"' | sort -ur | awk '{ print $$2 }' | xargs -I {} dirname {} | xargs basename -a)
|
||||
START_SVCS = $(shell cat .services | grep -v \\\#)
|
||||
STOP_SVCS = $(shell tac .services | grep -v \\\#)
|
||||
|
||||
# List of available sites
|
||||
HOSTS_LINES = $(shell grep -Rl IPV4_PREFIX ./services/* | grep .hosts)
|
||||
|
||||
|
||||
# Pull all required Docker images
|
||||
.PHONY: pull
|
||||
pull:
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
01
|
|
@ -1 +0,0 @@
|
|||
02
|
|
@ -1 +0,0 @@
|
|||
04
|
|
@ -1 +0,0 @@
|
|||
03
|
Loading…
Reference in New Issue