Skip to content

Commit 62b267a

Browse files
DmitryFomin1NikolayS
authored andcommitted
added restart of dblab containers
1 parent e1557a6 commit 62b267a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/1.synthetic.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,16 @@ dblab clone list
7272
export PGPASSWORD=testuser
7373
psql "host=localhost port=6000 user=testuser dbname=test" -c '\l'
7474

75+
### Step ?. Restart containers
76+
sudo docker ps -a --filter 'label=dblab_control' \
77+
| grep -v CONTAINER \
78+
| awk '{print $1}' \
79+
| sudo xargs --no-run-if-empty docker restart \
80+
|| true
81+
sudo docker ps -a --filter 'label=dblab-clone' \
82+
| grep -v CONTAINER \
83+
| awk '{print $1}' \
84+
| sudo xargs --no-run-if-empty docker restart \
85+
|| true
86+
87+
psql "host=localhost port=6000 user=testuser dbname=test" -c '\l'

0 commit comments

Comments
 (0)