2022-08-06 07:52:11 -05:00
|
|
|
#!/bin/bash
|
|
|
|
# 2022-08-05 Hyperling
|
|
|
|
# Start all containers.
|
|
|
|
# usage: start.sh
|
|
|
|
|
2023-07-23 14:51:48 -07:00
|
|
|
## Setup ##
|
|
|
|
|
|
|
|
DIR="`dirname $0`"
|
|
|
|
PROG=`basename $0`
|
|
|
|
if [[ $DIR == *"."* ]]; then
|
|
|
|
DIR="`pwd`"
|
|
|
|
fi
|
|
|
|
if [[ -z $DOCKER_HOME ]]; then
|
|
|
|
DOCKER_HOME="$DIR/.."
|
|
|
|
fi
|
|
|
|
|
|
|
|
## Main ##
|
2022-08-06 07:52:11 -05:00
|
|
|
|
|
|
|
cd $DOCKER_HOME/Config
|
|
|
|
for dir in `ls`; do
|
2023-07-23 14:51:48 -07:00
|
|
|
[ -d $dir ] && cd $dir || continue
|
|
|
|
pwd
|
|
|
|
[ -e Dockerfile ] && docker compose build
|
|
|
|
[ -e docker-compose.yml ] && docker compose up -d
|
|
|
|
cd ..
|
2022-08-06 07:52:11 -05:00
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|