1414# # Therefore, it should be kept in sync with that file
1515services :
1616 dspacedb :
17- image : dspace/dspace-postgres-pgcrypto:loadsql
17+ image : dspace/dspace-postgres-pgcrypto::${DSPACE_VER:-latest}- loadsql
1818 environment :
1919 # This LOADSQL should be kept in sync with the URL in DSpace/DSpace
2020 # This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
@@ -27,23 +27,11 @@ services:
2727 # 3. (Custom for Entities) enable Entity-specific collection submission mappings in item-submission.xml
2828 # This 'sed' command inserts the sample configurations specific to the Entities data set, see:
2929 # https://github.com/DSpace/DSpace/blob/main/dspace/config/item-submission.xml#L36-L49
30- # 4. Finally, start Tomcat
30+ # 4. Finally, start DSpace
3131 entrypoint :
3232 - /bin/bash
3333 - ' -c'
3434 - |
3535 while (!</dev/tcp/dspacedb/5432) > /dev/null 2>&1; do sleep 1; done;
3636 /dspace/bin/dspace database migrate ignored
37- sed -i '/name-map collection-handle="default".*/a \\n <name-map collection-handle="123456789/3" submission-name="Publication"/> \
38- <name-map collection-handle="123456789/4" submission-name="Publication"/> \
39- <name-map collection-handle="123456789/281" submission-name="Publication"/> \
40- <name-map collection-handle="123456789/5" submission-name="Publication"/> \
41- <name-map collection-handle="123456789/8" submission-name="OrgUnit"/> \
42- <name-map collection-handle="123456789/6" submission-name="Person"/> \
43- <name-map collection-handle="123456789/279" submission-name="Person"/> \
44- <name-map collection-handle="123456789/7" submission-name="Project"/> \
45- <name-map collection-handle="123456789/280" submission-name="Project"/> \
46- <name-map collection-handle="123456789/28" submission-name="Journal"/> \
47- <name-map collection-handle="123456789/29" submission-name="JournalVolume"/> \
48- <name-map collection-handle="123456789/30" submission-name="JournalIssue"/>' /dspace/config/item-submission.xml
49- catalina.sh run
37+ java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace
0 commit comments