unified and reworked docker container actions

This commit is contained in:
2023-02-26 20:45:39 +01:00
parent 99d177099a
commit 64f10c1350
3 changed files with 28 additions and 34 deletions

View File

@@ -1,19 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# > 0 ]]; then
DOCKER_ROOT=$1;
else
DOCKER_ROOT=$(pwd);
fi
# echo $DOCKER_ROOT;
source ./dockerContainerAction.sh
for subdir in $DOCKER_ROOT/*; do
if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" || ${subdir##*/} == "pydio_cells" || ${subdir##*/} == "mattermost" ]]; then
continue;
fi
# echo $subdir;
cd $subdir;
# echo $(pwd);
docker-compose down;
done
# FIXME!!! implement possibility to pass down directory
upDownContainers down