-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·41 lines (29 loc) · 1019 Bytes
/
entrypoint.sh
File metadata and controls
executable file
·41 lines (29 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Entrypoint script for InvenioRDM
set -e
# Creating database and tables if they do not exist...
invenio db init create
# Creating files location...
invenio files location create --default s3-default "s3://${S3_BUCKET}"
# Superuser role
invenio roles create admin
invenio access allow superuser-access role admin
# Administration access role
invenio roles create administration
invenio access allow administration-access role administration
# Administration moderation role
invenio roles create administration-moderation
invenio access allow administration-moderation role administration-moderation
# Creating indices if they do not exist...
invenio index init
# Creating custom fields for records...
invenio rdm-records custom-fields init
# Creating custom fields for communities...
invenio communities custom-fields init
# Creating rdm fixtures...
invenio rdm-records fixtures
# rebuilding all indices...
invenio rdm rebuild-all-indices
# Declaring queues...
invenio queues declare
exec "$@"