From 435035e2b33a233ce9e177603276a6f000f409d0 Mon Sep 17 00:00:00 2001 From: fabian Date: Wed, 17 Aug 2022 21:09:24 +0200 Subject: [PATCH] new: script for starting all present docker containers --- scripts/startContainers.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/startContainers.sh diff --git a/scripts/startContainers.sh b/scripts/startContainers.sh new file mode 100755 index 0000000..af0c675 --- /dev/null +++ b/scripts/startContainers.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +set -euo pipefail + +if [[ $# > 0 ]]; then + DOCKER_ROOT=$1; +else + DOCKER_ROOT=$(pwd); +fi +# echo $DOCKER_ROOT; + +for subdir in $DOCKER_ROOT/*; do + if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" ]]; then + continue; + fi + # echo $subdir; + cd $subdir; + # echo $(pwd); + docker-compose up -d; +done +