oneuptime/Ci/scripts/docker-build-all-and-push.sh
2022-04-11 14:11:16 +01:00

54 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
echo "
======== IMPORTANT! =========
This script will take ~30+ mins to complete.
- Builds a docker container
- This scirpt takes a long time to run when you run it for the first time
- Next subsequent executions would be a lot faster.
"
if [[ ! $(which docker) && ! $(docker --version) ]]
then
echo -e "\033[91mPlease install Docker. https://docs.docker.com/install"
exit
fi
if [[ ! $(which git) && ! $(docker --git) ]]
then
echo -e "\033[91mPlease install Git. https://git-scm.com/book/en/v2/Getting-Started-Installing-Git"
exit
fi
DIR=$PWD
ONEUPTIME_DIR="$DIR/.."
chmod +x ./ci/scripts/docker-build-and-push.sh
function build {
./ci/scripts/docker-build-and-push.sh $1 $2
}
# cd ..
build dashboard $1
build accounts $1
build backend $1
build home $1
build StatusPage $1
build ApiDocs $1
build probe $1
build AdminDashboard $1
build InitScript $1
build slack $1
build licensing $1
build HelmChart $1
build LighthouseRunner $1
build ScriptRunner $1
build ContainerScanner $1
build ApplicationScanner $1
build data-ingestor $1
build realtime $1
build haraka $1
build HttpTestServer $1
cd $DIR