mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 13:41:56 +00:00
Added setup.sh to repo
This commit is contained in:
2
justfile
2
justfile
@@ -87,7 +87,7 @@ cleanup-versions:
|
||||
deploy:
|
||||
#!/usr/bin/env bash
|
||||
docker compose up -d --wait
|
||||
docker exec -it am-d-modeleu-worker-1 setup.sh
|
||||
docker exec -it am-d-modeleu-worker-1 ./setup.sh
|
||||
|
||||
fmt:
|
||||
bun run prettier --write "**/*.{js,jsx,ts,tsx,html,css,scss,sass,svelte,yaml,json,markdown}"
|
||||
|
||||
39
setup.sh
Normal file
39
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