Skip to content

Commit e57525a

Browse files
committed
play: report container/image ids - add play top command
1 parent 74b2b79 commit e57525a

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/plebnet-playground.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
sudo apt install -y mkdocs
4444
pip install -r docs/requirements.txt
4545
make init report
46+
play
4647
make install
4748
#make uninstall
4849
@@ -60,6 +61,7 @@ jobs:
6061
sudo apt install -y mkdocs
6162
pip install -r docs/requirements.txt
6263
make init report
64+
play
6365
make install
6466
#make uninstall
6567

scripts/play

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,41 @@ export TOR_IMAGE
3535
for ((i=1;i<=$#;i++));
3636
do
3737

38-
if [[ ${!i} = *id ]]; then
38+
if [[ ${!i} = *ids ]]; then
3939
((i++))
40+
echo THUNDERHUB_ID:
41+
echo $THUNDERHUB_ID
42+
echo RTL_ID:
43+
echo $RTL_ID
44+
echo LND_ID:
45+
echo $LND_ID
46+
echo DOCS_ID:
47+
echo $DOCS_ID
48+
echo BITCOIND_ID:
4049
echo $BITCOIND_ID
50+
echo TOR_ID:
51+
echo $TOR_ID
4152
exit
4253

43-
elif [[ ${!i} = *image ]]; then
54+
elif [[ ${!i} = *images ]]; then
4455
((i++))
56+
echo THUNDERHUB_IMAGE:
57+
echo $THUNDERHUB_IMAGE
58+
echo RTL_IMAGE:
59+
echo $RTL_IMAGE
60+
echo LND_IMAGE:
61+
echo $LND_IMAGE
62+
echo DOCS_IMAGE:
63+
echo $DOCS_IMAGE
64+
echo BITCOIND_IMAGES:
4565
echo $BITCOIND_IMAGE
66+
echo TOR_IMAGE:
67+
echo $TOR_IMAGE
4668
exit
4769

4870
elif [[ ${!i} = top ]]; then
4971
((i++))
50-
docker top $BITCOIND_ID
72+
docker top ${!i}
5173
exit
5274

5375
elif [[ ${!i} = start ]]; then
@@ -90,6 +112,8 @@ do
90112
elif [[ ${!i} == *help ]]; then
91113
((i++))
92114
echo
115+
echo "play ids"
116+
echo "play top <CONTAINER_ID>"
93117
echo "play <command> - execute shell command in container"
94118
echo "play -d '<command>' - send command to bitcoind"
95119
echo "play -cli '<command>' - send command to bitcoin-cli"

0 commit comments

Comments
 (0)