@@ -33,7 +33,7 @@ services:
3333 # This allows us to generate statistics in e2e tests so that statistics pages can be tested thoroughly.
3434 solr__D__statistics__P__autoCommit : ' false'
3535 LOGGING_CONFIG : /dspace/config/log4j2-container.xml
36- image : " ${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-dspace }/dspace:${DSPACE_VER:-latest-test} "
36+ image : " ${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science }/dspace-cris :${DSPACE_VER:-dspace-cris-2025_02_x}-test "
3737 depends_on :
3838 - dspacedb
3939 networks :
@@ -53,19 +53,21 @@ services:
5353 - /bin/bash
5454 - ' -c'
5555 - |
56- while (!</dev/tcp/dspacedb/5432) > /dev/null 2>&1; do sleep 1; done;
56+ /dspace/bin/dspace database repair
57+ /dspace/bin/dspace database migrate
5758 /dspace/bin/dspace database migrate ignored
58- java -jar /dspace/webapps/server- boot.jar --dspace.dir=/dspace
59+ java -XX:+UseParallelGC -XX:MaxRAMPercentage=75 org.springframework. boot.loader.launch.JarLauncher
5960 # DSpace database container
6061 # NOTE: This is customized to use our loadsql image, so that we are using a database with existing test data
6162 dspacedb :
6263 container_name : dspacedb
63- image : " ${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-dspace }/dspace-postgres-pgcrypto:${DSPACE_VER:-latest }-loadsql"
64+ image : " ${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science }/dspace-cris- postgres-pgcrypto:${DSPACE_VER:-dspace-cris-2025_02_x }-loadsql"
6465 environment :
6566 # This LOADSQL should be kept in sync with the LOADSQL in
6667 # https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/db.entities.yml
6768 # This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
68- LOADSQL : https://github.com/DSpace-Labs/AIP-Files/releases/download/demo-entities-data/dspace7-entities-data.sql
69+ # NOTE: currently there is no dspace8 version
70+ LOADSQL : https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2024.02.00/db-entities.sql
6971 PGDATA : /pgdata
7072 POSTGRES_PASSWORD : dspace
7173 networks :
@@ -81,7 +83,7 @@ services:
8183 # DSpace Solr container
8284 dspacesolr :
8385 container_name : dspacesolr
84- image : " ${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-dspace }/dspace-solr:${DSPACE_VER:-latest }"
86+ image : " ${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science }/dspace-cris- solr:${DSPACE_VER:-dspace-cris-2025_02_x }"
8587 networks :
8688 - dspacenet
8789 ports :
@@ -93,10 +95,7 @@ services:
9395 volumes :
9496 # Keep Solr data directory between reboots
9597 - solr_data:/var/solr/data
96- # NOTE: We are not running Solr as "root", but we need root permissions to copy our cores to the mounted
97- # /var/solr/data directory. Then we start Solr as the "solr" user.
98- user : root
99- # Initialize all DSpace Solr cores, then start Solr
98+ # Initialize all DSpace Solr cores using the mounted configsets (see above), then start Solr
10099 entrypoint :
101100 - /bin/bash
102101 - ' -c'
@@ -114,8 +113,11 @@ services:
114113 cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
115114 precreate-core suggestion /opt/solr/server/solr/configsets/suggestion
116115 cp -r /opt/solr/server/solr/configsets/suggestion/* suggestion
117- chown -R solr:solr /var/solr
118- runuser -u solr -- solr-foreground
116+ precreate-core dedup /opt/solr/server/solr/configsets/dedup
117+ cp -r /opt/solr/server/solr/configsets/dedup/* dedup
118+ precreate-core audit /opt/solr/server/solr/configsets/audit
119+ cp -r /opt/solr/server/solr/configsets/audit/* audit
120+ exec solr -f
119121volumes :
120122 assetstore :
121123 pgdata :
0 commit comments