Skip to content
Snippets Groups Projects
Verified Commit f0ea164a authored by Martin Weise's avatar Martin Weise
Browse files

Updated check script and install script

parent d43496e7
No related branches found
No related tags found
1 merge request!416Attempt new release
...@@ -16,7 +16,7 @@ variables: ...@@ -16,7 +16,7 @@ variables:
CHART_VERSION: "1.8.2" CHART_VERSION: "1.8.2"
SUPPORTED_VERSIONS: "1.7.3, 1.8.0, 1.8.1, 1.8.2" SUPPORTED_VERSIONS: "1.7.3, 1.8.0, 1.8.1, 1.8.2"
SUPPORTED_ARCH: "linux/amd64" SUPPORTED_ARCH: "linux/amd64"
MAINTAINED_SERVICES: "analyse-service, auth-service-init, dashboard-service, dashboard-service-init, data-service, metadata-service, search-db, search-service, search-service-init, storage-service-init, ui" MAINTAINED_SERVICES: "analyse-service, auth-service-init, dashboard-service, dashboard-service-init, data-service, metadata-service, search-service, search-service-init, storage-service-init, ui"
CACHE_FALLBACK_KEY: "${CI_DEFAULT_BRANCH}" CACHE_FALLBACK_KEY: "${CI_DEFAULT_BRANCH}"
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log. # This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work. # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
......
#!/bin/bash #!/bin/bash
echo "Starting registry check ..." echo "Starting registry check ..."
if [ -z $SUPPORTED_VERSIONS ]; then if [[ -z $SUPPORTED_VERSIONS ]]; then
echo "[ERROR] Missing environment variable SUPPORTED_VERSIONS" > /dev/stderr echo "[ERROR] Missing environment variable SUPPORTED_VERSIONS" > /dev/stderr
exit 1 exit 1
elif [ -z $MAINTAINED_SERVICES ]; then elif [[ -z $MAINTAINED_SERVICES ]]; then
echo "[ERROR] Missing environment variable MAINTAINED_SERVICES" > /dev/stderr echo "[ERROR] Missing environment variable MAINTAINED_SERVICES" > /dev/stderr
exit 1 exit 1
elif [ -z $CI_REGISTRY2_URL ]; then elif [[ -z $CI_REGISTRY2_URL ]]; then
echo "[ERROR] Missing environment variable CI_REGISTRY2_URL" > /dev/stderr echo "[ERROR] Missing environment variable CI_REGISTRY2_URL" > /dev/stderr
exit 1 exit 1
fi fi
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
APP_VERSION="1.8.2" APP_VERSION="1.8.2"
DOC_VERSION="1.8" DOC_VERSION="1.8"
MIN_CPU=8 MIN_CPU=8
MIN_RAM=20 MIN_RAM=10
SKIP_CHECKS=${SKIP_CHECKS:-0} SKIP_CHECKS=${SKIP_CHECKS:-0}
DOWNLOAD_ONLY=${DOWNLOAD_ONLY:-0} DOWNLOAD_ONLY=${DOWNLOAD_ONLY:-0}
...@@ -35,7 +35,7 @@ if [[ $SKIP_CHECKS -eq 0 ]] && [[ $DOWNLOAD_ONLY -ne 1 ]]; then ...@@ -35,7 +35,7 @@ if [[ $SKIP_CHECKS -eq 0 ]] && [[ $DOWNLOAD_ONLY -ne 1 ]]; then
if [[ $RAM -lt $MIN_RAM ]]; then if [[ $RAM -lt $MIN_RAM ]]; then
echo "You do not have enough RAM free resources:" echo "You do not have enough RAM free resources:"
echo "" echo ""
echo " - we found ${RAM}GB RAM (free) instead of necessary ${RAM}GB" echo " - we found ${RAM}GB RAM (free) instead of necessary ${MIN_RAM}GB"
echo " - if you believe this is a mistake, skip startup checks with the SKIP_CHECKS=1 flag" echo " - if you believe this is a mistake, skip startup checks with the SKIP_CHECKS=1 flag"
exit 4 exit 4
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment