From 74b53ae193ea5059369787126ed873ee018ab698 Mon Sep 17 00:00:00 2001 From: Alfredo Oliviero Date: Thu, 28 Mar 2024 19:25:44 +0100 Subject: [PATCH] check for container.ini --- buildImageAndStart.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/buildImageAndStart.sh b/buildImageAndStart.sh index c1ae9fd..aeb504e 100755 --- a/buildImageAndStart.sh +++ b/buildImageAndStart.sh @@ -9,6 +9,10 @@ DEBUG=false COMPILE=true java_version=11 + +CONTAINERFILE=docker/container.ini + + ################################################################################ # Help # ################################################################################ @@ -73,6 +77,17 @@ while getopts $OPTSTRING opt; do esac done +if ! test -e "$CONTAINERFILE"; then + echo "missing docker/container.ini file. + +Create and configurate your container.config.ini file from container.default.ini, +then create a symbolic link to container.ini + + cp docker/container.default.ini docker/container.configuration.ini + ln -s docker/container.configuration.ini docker/container.ini" + exit 1; +fi + if [ $COMPILE = true ]; then mvn clean package else