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
b7462e4c
Commit
b7462e4c
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
f444b9c5
No related branches found
No related tags found
4 merge requests
!231
CI: Remove build for log-service
,
!228
Better error message handling in the frontend
,
!223
Release of version 1.4.0
,
!191
Fixed the DataCite issue of minting new dois
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+40
-0
40 additions, 0 deletions
install.sh
with
40 additions
and
0 deletions
install.sh
0 → 100644
+
40
−
0
View file @
b7462e4c
#!/bin/bash
if
[
$USER
!=
"root"
]
;
then
echo
"This script needs sudo privileges!"
exit
1
fi
docker info
>
/dev/null
if
[
$?
-ne
0
]
;
then
echo
"Docker is not installed (or accessible in bash) on your system:"
echo
""
echo
" - install docker from https://docs.docker.com/desktop/install/linux-install/"
echo
" - make sure the docker executable is in
\$
PATH"
exit
2
fi
echo
"Gathering environment ..."
curl
-sSL
-o
.env https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/dev/.env.unix.example
curl
-sSL
-o
docker-compose.yml https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/dev/docker-compose.prod.yml
curl
-sSL
-o
dbrepo.conf https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/dev/dbrepo-gateway-service/dbrepo.conf
curl
-sSL
-o
setup-schema_local.sql https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/dev/dbrepo-metadata-db/setup-schema_local.sql
echo
"Pulling images ..."
docker compose pull
MAX_MAP_COUNT
=
$(
cat
/proc/sys/vm/max_map_count
)
if
[
"
$MAX_MAP_COUNT
"
-lt
262144
]
;
then
echo
"Preparing environment ..."
echo
"vm.max_map_count=262144"
>>
/etc/sysctl.conf
sysctl
-p
fi
echo
"Starting DBRepo ..."
docker compose up
-d
if
[
$?
-eq
0
]
;
then
echo
"Successfully started. You can now inspect the logs with:"
echo
""
echo
"docker compose logs -f"
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