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

Updated checks

parent abf457c5
No related branches found
No related tags found
3 merge requests!356Dev,!354Hotfix/docs,!351Hotfix/upload
...@@ -162,9 +162,18 @@ verify-install-script: ...@@ -162,9 +162,18 @@ verify-install-script:
variables: variables:
SKIP_CHECKS: 1 SKIP_CHECKS: 1
script: script:
- apk add bash curl - "apk add bash curl"
- bash install.sh - "curl -sSL https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/release-${DOC_VERSION}/install.sh | bash | grep 'Success!'"
- exit 0
verify-dist:
image: docker.io/alpine:3.20
stage: verify
only:
refs:
- /^release-.*/
script:
- "apk add curl"
- "curl -v --output /dev/null --fail https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/${APP_VERSION}/dist.tar.gz"
lint-helm-chart: lint-helm-chart:
image: docker.io/alpine:3.20 image: docker.io/alpine:3.20
......
...@@ -43,12 +43,18 @@ if [[ $SKIP_CHECKS -eq 0 ]] && [[ $DOWNLOAD_ONLY -ne 1 ]]; then ...@@ -43,12 +43,18 @@ if [[ $SKIP_CHECKS -eq 0 ]] && [[ $DOWNLOAD_ONLY -ne 1 ]]; then
fi fi
MAX_MAP_COUNT=$(cat /proc/sys/vm/max_map_count) MAX_MAP_COUNT=$(cat /proc/sys/vm/max_map_count)
if [[ $MAX_MAP_COUNT -lt $MIN_MAP_COUNT ]]; then if [[ $MAX_MAP_COUNT -lt $MIN_MAP_COUNT ]]; then
echo "You do not have enough max. map counts:" echo "You do not have enough max. map counts: found ${MAX_MAP_COUNT} instead of minimum ${MIN_MAP_COUNT}"
echo "" if [ $(id -u) -eq 0 ]; then
echo " - we found max. ${MAX_MAP_COUNT} map count instead of necessary ${MIN_MAP_COUNT}" echo " - attempt to update the /etc/sysctl.conf file and add the line 'vm.max_map_count=${MIN_MAP_COUNT}' at the end"
echo " - update your /etc/sysctl.conf file and add the line 'vm.max_map_count=${MIN_MAP_COUNT}' at the end and apply it with 'sysctl -p'" echo "vm.max_map_count=${MIN_MAP_COUNT}" >> /etc/sysctl.conf
echo " - if you believe this is a mistake, skip startup checks with the SKIP_CHECKS=1 flag" sysctl -p
if [[ $MAX_MAP_COUNT -lt $MIN_MAP_COUNT ]]; then
exit 4 exit 4
fi
else
echo " - you need to re-run the install.sh script as root to fix this"
exit 4
fi
else else
echo "MAP COUNT ${MAX_MAP_COUNT} OK" echo "MAP COUNT ${MAX_MAP_COUNT} OK"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment