mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2025-12-22 20:41:56 +00:00
Working deployment of invenio backend
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
{
|
||||
admin off
|
||||
debug
|
||||
log {
|
||||
level DEBUG
|
||||
}
|
||||
}
|
||||
|
||||
am-d-model.eu {
|
||||
|
||||
@@ -128,7 +128,7 @@ services:
|
||||
volumes:
|
||||
- uploaded_data:/opt/invenio/var/instance/data
|
||||
environment:
|
||||
- INVENIO_SQLALCHEMY_DATABASE_URI=${INVENIO_SQLALCHEMY_DATABASE_URI:-postgresql+psycopg2://inveniordm:inveniordm@db/inveniordm}
|
||||
- INVENIO_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://${POSTGRES_USER:-inveniordm}:${POSTGRES_PASSWORD:-inveniordm}@db/${POSTGRES_DB:-inveniordm}
|
||||
- INVENIO_SEARCH_HOSTS=${INVENIO_SEARCH_HOSTS:-['search:9200']}
|
||||
- INVENIO_SEARCH_INDEX_PREFIX=${INVENIO_SEARCH_INDEX_PREFIX:-invenio-rdm-}
|
||||
|
||||
@@ -192,7 +192,7 @@ services:
|
||||
restart: "unless-stopped"
|
||||
environment:
|
||||
- bootstrap.memory_lock=true
|
||||
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
|
||||
- OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx256m
|
||||
- DISABLE_INSTALL_DEMO_CONFIG=true
|
||||
- DISABLE_SECURITY_PLUGIN=true
|
||||
- discovery.type=single-node
|
||||
@@ -203,7 +203,7 @@ services:
|
||||
nofile:
|
||||
soft: 65536
|
||||
hard: 65536
|
||||
mem_limit: 2g
|
||||
mem_limit: 1g
|
||||
ports:
|
||||
- "9200:9200"
|
||||
- "9600:9600"
|
||||
|
||||
39
invenio_setup.sh
Normal file
39
invenio_setup.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "-- Setup InvenioRDM --"
|
||||
|
||||
# Creating database...
|
||||
invenio db init create
|
||||
|
||||
# Creating files location...
|
||||
invenio files location create --default s3-default "s3://${INVENIO_S3_BUCKET_NAME}"
|
||||
|
||||
# Creating admin role...
|
||||
invenio roles create admin
|
||||
|
||||
# Assigning superuser access to admin role...
|
||||
invenio access allow superuser-access role admin
|
||||
|
||||
# Dropping and re-reating indices...
|
||||
invenio index destroy --force --yes-i-know
|
||||
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
|
||||
|
||||
# Creating demo records...
|
||||
# invenio rdm-records demo records --user user@demo.org
|
||||
|
||||
# Creating demo communities
|
||||
# invenio rdm-records demo communities --user community@demo.org
|
||||
|
||||
# Declaring queues...
|
||||
invenio queues declare
|
||||
|
||||
echo "-- Setup completed --"
|
||||
Reference in New Issue
Block a user