Skip to content

Commit 96cff30

Browse files
committed
Update REST and CI docker compose scripts to sync with 8.0 backend
1 parent 6d582cd commit 96cff30

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

docker/docker-compose-ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ services:
3333
# Tell Statistics to commit all views immediately instead of waiting on Solr's autocommit.
3434
# This allows us to generate statistics in e2e tests so that statistics pages can be tested thoroughly.
3535
solr__D__statistics__P__autoCommit: 'false'
36+
LOGGING_CONFIG: /dspace/config/log4j2-container.xml
3637
image: "${DOCKER_OWNER:-dspace}/dspace:${DSPACE_VER:-latest-test}"
3738
depends_on:
3839
- dspacedb
@@ -60,15 +61,19 @@ services:
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
64+
image: "${DOCKER_OWNER:-dspace}/dspace-postgres-pgcrypto:${DSPACE_VER:-latest-loadsql}"
6365
environment:
6466
# This LOADSQL should be kept in sync with the LOADSQL in
6567
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/db.entities.yml
6668
# This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
6769
LOADSQL: https://github.com/DSpace-Labs/AIP-Files/releases/download/demo-entities-data/dspace7-entities-data.sql
6870
PGDATA: /pgdata
69-
image: dspace/dspace-postgres-pgcrypto:loadsql
71+
POSTGRES_PASSWORD: dspace
7072
networks:
7173
- dspacenet
74+
ports:
75+
- published: 5432
76+
target: 5432
7277
stdin_open: true
7378
tty: true
7479
volumes:
@@ -105,6 +110,8 @@ services:
105110
cp -r /opt/solr/server/solr/configsets/statistics/* statistics
106111
precreate-core qaevent /opt/solr/server/solr/configsets/qaevent
107112
cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
113+
precreate-core suggestion /opt/solr/server/solr/configsets/suggestion
114+
cp -r /opt/solr/server/solr/configsets/suggestion/* suggestion
108115
exec solr -f
109116
volumes:
110117
assetstore:

docker/docker-compose-rest.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ services:
2929
# __D__ => "-" (e.g. google__D__metadata => google-metadata)
3030
# dspace.dir, dspace.server.url, dspace.ui.url and dspace.name
3131
dspace__P__dir: /dspace
32-
dspace__P__server__P__url: http://localhost:8080/server
33-
dspace__P__ui__P__url: http://localhost:4000
32+
# Uncomment to set a non-default value for dspace.server.url or dspace.ui.url
33+
# dspace__P__server__P__url: http://localhost:8080/server
34+
# dspace__P__ui__P__url: http://localhost:4000
3435
dspace__P__name: 'DSpace Started with Docker Compose'
3536
# db.url: Ensure we are using the 'dspacedb' image for our database
3637
db__P__url: 'jdbc:postgresql://dspacedb:5432/dspace'
@@ -39,6 +40,7 @@ services:
3940
# proxies.trusted.ipranges: This setting is required for a REST API running in Docker to trust requests
4041
# from the host machine. This IP range MUST correspond to the 'dspacenet' subnet defined above.
4142
proxies__P__trusted__P__ipranges: '172.23.0'
43+
LOGGING_CONFIG: /dspace/config/log4j2-container.xml
4244
image: "${DOCKER_OWNER:-dspace}/dspace:${DSPACE_VER:-latest-test}"
4345
depends_on:
4446
- dspacedb
@@ -50,6 +52,7 @@ services:
5052
stdin_open: true
5153
tty: true
5254
volumes:
55+
# Keep DSpace assetstore directory between reboots
5356
- assetstore:/dspace/assetstore
5457
# Ensure that the database is ready BEFORE starting tomcat
5558
# 1. While a TCP connection to dspacedb port 5432 is not available, continue to sleep
@@ -65,9 +68,11 @@ services:
6568
# DSpace database container
6669
dspacedb:
6770
container_name: dspacedb
71+
# Uses a custom Postgres image with pgcrypto installed
72+
image: "${DOCKER_OWNER:-dspace}/dspace-postgres-pgcrypto:${DSPACE_VER:-latest}"
6873
environment:
6974
PGDATA: /pgdata
70-
image: "${DOCKER_OWNER:-dspace}/dspace-postgres-pgcrypto:${DSPACE_VER:-latest}"
75+
POSTGRES_PASSWORD: dspace
7176
networks:
7277
- dspacenet
7378
ports:
@@ -113,6 +118,8 @@ services:
113118
cp -r /opt/solr/server/solr/configsets/statistics/* statistics
114119
precreate-core qaevent /opt/solr/server/solr/configsets/qaevent
115120
cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
121+
precreate-core suggestion /opt/solr/server/solr/configsets/suggestion
122+
cp -r /opt/solr/server/solr/configsets/suggestion/* suggestion
116123
exec solr -f
117124
volumes:
118125
assetstore:

0 commit comments

Comments
 (0)