mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
Makefile small refact
This commit is contained in:
parent
0f3fed82dd
commit
516abb22e9
1 changed files with 4 additions and 3 deletions
7
Makefile
7
Makefile
|
@ -1,8 +1,6 @@
|
||||||
|
.DEFAULT_GOAL := start
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
|
|
||||||
start: generate_etc
|
|
||||||
docker compose up --force-recreate --build --detach
|
|
||||||
|
|
||||||
generate_etc:
|
generate_etc:
|
||||||
install -d \
|
install -d \
|
||||||
tmp/etc/any-sync-node-{1..3}/ \
|
tmp/etc/any-sync-node-{1..3}/ \
|
||||||
|
@ -15,6 +13,9 @@ generate_etc:
|
||||||
cat etc/{network,common,coordinator}.yml > tmp/etc/any-sync-coordinator/config.yml
|
cat etc/{network,common,coordinator}.yml > tmp/etc/any-sync-coordinator/config.yml
|
||||||
cat etc/network.yml | grep -v '^network:' > tmp/etc/any-sync-coordinator/network.yml
|
cat etc/network.yml | grep -v '^network:' > tmp/etc/any-sync-coordinator/network.yml
|
||||||
|
|
||||||
|
start: generate_etc
|
||||||
|
docker compose up --force-recreate --build --detach
|
||||||
|
|
||||||
stop:
|
stop:
|
||||||
docker compose stop
|
docker compose stop
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue