-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·32 lines (25 loc) · 781 Bytes
/
run.sh
File metadata and controls
executable file
·32 lines (25 loc) · 781 Bytes
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
#!/bin/bash
if [[ $1 == "" ]]
then
echo "usage: run.sh lnd | lnd-managej | cln"
exit 1
fi
if [[ $1 != 'cln' && $1 != 'lnd' && $1 != 'lnd-managej' ]]
then
echo "unknown target"
exit 1
fi
if [[ "$OSTYPE" == "darwin"* && $1 == 'lnd-managej' ]]
then
echo "lnd-managej not supported on mac"
exit 1
fi
# Select target: 'cln' or 'lnd' or 'lnd-managej'
export TARGET=$1
# Generate up to date docker compose file from graph.yml
go run ./cmd/gencluster/... > docker-compose.yml
# Make sure that all leftovers from a previous run are removed.
docker-compose down -v --remove-orphans
# Spin up the stack and output logs as a foreground process. Grep filters the
# output to only show the test results.
docker-compose up --build | grep testrunner # --abort-on-container-exit