Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
6f06b3a5
Verified
Commit
6f06b3a5
authored
8 months ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Updated checks
parent
abf457c5
No related branches found
No related tags found
3 merge requests
!356
Dev
,
!354
Hotfix/docs
,
!351
Hotfix/upload
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+12
-3
12 additions, 3 deletions
.gitlab-ci.yml
install.sh
+12
-6
12 additions, 6 deletions
install.sh
with
24 additions
and
9 deletions
.gitlab-ci.yml
+
12
−
3
View file @
6f06b3a5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
install.sh
+
12
−
6
View file @
6f06b3a5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment