Ensure Docker Compose uses Runnable JAR. Minor bug fixes to loadsql per #2966

This commit is contained in:
Tim Donohue
2024-05-02 11:25:40 -05:00
parent 0e61cfd0c2
commit 574adc846b
3 changed files with 8 additions and 20 deletions

View File

@@ -56,14 +56,14 @@ services:
# 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. Finally, start Tomcat
# 3. Finally, start DSpace
entrypoint:
- /bin/bash
- '-c'
- |
while (!</dev/tcp/dspacedb/5432) > /dev/null 2>&1; do sleep 1; done;
/dspace/bin/dspace database migrate
catalina.sh run
java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace
# DSpace database container
dspacedb:
container_name: dspacedb