mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Ensure Entities submission config is setup & ensure Solr image starts after main one
This commit is contained in:
@@ -20,4 +20,32 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
# This LOADSQL should be kept in sync with the URL in DSpace/DSpace
|
# This LOADSQL should be kept in sync with the URL in DSpace/DSpace
|
||||||
# This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
|
# This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
|
||||||
- LOADSQL=https://github.com/DSpace-Labs/AIP-Files/releases/download/demo-entities-data/dspace7-entities-2021-04-14.sql
|
- LOADSQL=https://github.com/DSpace-Labs/AIP-Files/releases/download/demo-entities-data/dspace7-entities-2021-04-14.sql
|
||||||
|
dspace:
|
||||||
|
### OVERRIDE default 'entrypoint' in 'docker-compose-rest.yml' ####
|
||||||
|
# Ensure that the database is ready BEFORE starting tomcat
|
||||||
|
# 1. While a TCP connection to dspacedb port 5432 is not available, continue to sleep
|
||||||
|
# 2. Then, run database migration to init database tables
|
||||||
|
# 3. (Custom for Entities) enable Entity-specific collection submission mappings in item-submission.xml
|
||||||
|
# This 'sed' command inserts the sample configurations specific to the Entities data set, see:
|
||||||
|
# https://github.com/DSpace/DSpace/blob/main/dspace/config/item-submission.xml#L36-L49
|
||||||
|
# 4. Finally, start Tomcat
|
||||||
|
entrypoint:
|
||||||
|
- /bin/bash
|
||||||
|
- '-c'
|
||||||
|
- |
|
||||||
|
while (!</dev/tcp/dspacedb/5432) > /dev/null 2>&1; do sleep 1; done;
|
||||||
|
/dspace/bin/dspace database migrate
|
||||||
|
sed -i '/name-map collection-handle="default".*/a \\n <name-map collection-handle="123456789/3" submission-name="Publication"/> \
|
||||||
|
<name-map collection-handle="123456789/4" submission-name="Publication"/> \
|
||||||
|
<name-map collection-handle="123456789/281" submission-name="Publication"/> \
|
||||||
|
<name-map collection-handle="123456789/5" submission-name="Publication"/> \
|
||||||
|
<name-map collection-handle="123456789/8" submission-name="OrgUnit"/> \
|
||||||
|
<name-map collection-handle="123456789/6" submission-name="Person"/> \
|
||||||
|
<name-map collection-handle="123456789/279" submission-name="Person"/> \
|
||||||
|
<name-map collection-handle="123456789/7" submission-name="Project"/> \
|
||||||
|
<name-map collection-handle="123456789/280" submission-name="Project"/> \
|
||||||
|
<name-map collection-handle="123456789/28" submission-name="Journal"/> \
|
||||||
|
<name-map collection-handle="123456789/29" submission-name="JournalVolume"/> \
|
||||||
|
<name-map collection-handle="123456789/30" submission-name="JournalIssue"/>' /dspace/config/item-submission.xml
|
||||||
|
catalina.sh run
|
@@ -65,6 +65,9 @@ services:
|
|||||||
container_name: dspacesolr
|
container_name: dspacesolr
|
||||||
# Uses official Solr image at https://hub.docker.com/_/solr/
|
# Uses official Solr image at https://hub.docker.com/_/solr/
|
||||||
image: solr:8.8
|
image: solr:8.8
|
||||||
|
# Needs main 'dspace' container to start first to guarantee access to solr_configs
|
||||||
|
depends_on:
|
||||||
|
- dspace
|
||||||
networks:
|
networks:
|
||||||
dspacenet:
|
dspacenet:
|
||||||
ports:
|
ports:
|
||||||
|
@@ -63,6 +63,9 @@ services:
|
|||||||
container_name: dspacesolr
|
container_name: dspacesolr
|
||||||
# Uses official Solr image at https://hub.docker.com/_/solr/
|
# Uses official Solr image at https://hub.docker.com/_/solr/
|
||||||
image: solr:8.8
|
image: solr:8.8
|
||||||
|
# Needs main 'dspace' container to start first to guarantee access to solr_configs
|
||||||
|
depends_on:
|
||||||
|
- dspace
|
||||||
networks:
|
networks:
|
||||||
dspacenet:
|
dspacenet:
|
||||||
ports:
|
ports:
|
||||||
|
Reference in New Issue
Block a user