-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
49 lines (42 loc) · 1.66 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Only use these programs directly or explain yourself:
# awk cat cmp cp diff echo egrep expr false grep install-info ln ls
# mkdir mv printf pwd rm rmdir sed sleep sort tar test touch tr true
.PHONY: pydemo-0-hop pydemo-1-hop pydemo-2-hop rsdemo-1-hop docker-clean-containers
all: pydemo-2-hop
CLN_CMD="lightningd --log-level=debug --plugin=/wd/plugins/gatepay/gatepay.py --plugin=/wd/plugins/gateway/gateway.py"
pydemo-0-hop:
export PYDEMO_HOPS=0 ; \
export CLN_CMD=${CLN_CMD}; \
cd docker && docker-compose down -v && \
docker-compose up --build --force-recreate -V --remove-orphans --abort-on-container-exit \
--scale rsdemo=0 \
--scale db_bob=0 \
--scale bob_gateway=0 \
--scale db_carol=0 \
--scale carol_gateway=0 \
--scale elementsd_liquid_regtest=0 \
--scale clightning_bob_liquid_regtest=0 \
--scale clightning_carol_liquid_regtest=0 \
pydemo-1-hop:
export PYDEMO_HOPS=1 ; \
export CLN_CMD=${CLN_CMD}; \
cd docker && docker-compose down -v && \
docker-compose up --build --force-recreate -V --remove-orphans --abort-on-container-exit \
--scale rsdemo=0 \
--scale db_carol=0 \
--scale carol_gateway=0 \
pydemo-2-hop:
export PYDEMO_HOPS=2 ; \
export CLN_CMD=${CLN_CMD}; \
cd docker && docker-compose down -v && \
docker-compose up --build --force-recreate -V --remove-orphans --abort-on-container-exit \
--scale rsdemo=0 \
rsdemo-1-hop:
cd docker && docker-compose down -v && \
export CLN_CMD=${CLN_CMD}; \
docker-compose up --build --force-recreate -V --remove-orphans --abort-on-container-exit \
--scale pydemo=0 \
--scale db_carol=0 \
--scale carol_gateway=0 \
docker-clean-containers:
docker stop $$(docker ps -aq) ; docker rm $$(docker ps -aq)