Closed kosarko closed 6 months ago
@kosarko The reason why the dspace index-authority
command does not work is that the docker/cli.yml
file does not mount local.cfg
, causing the updated local.cfg
to be ignored.
After this change it works:
diff --git a/docker/cli.yml b/docker/cli.yml
index 6d1c0f194..7fc25d4ee 100644
--- a/docker/cli.yml
+++ b/docker/cli.yml
@@ -40,6 +40,7 @@ services:
assetstore__P__s3__P__endpoint: ${S3_ENDPOINT:-}
volumes:
- "assetstore:/dspace/assetstore"
+ - ./local.cfg:/dspace/config/local.cfg
entrypoint: /dspace/bin/dspace
command: help
networks:
In relation to configurations, it's worth considering whether clarin-dspace.cfg
or authority.cfg
could also be mounted.
@kosarko Unit tests and integration test are failing. Will you fix it or should I try?
@milanmajchrak the test are now passing. I've moved most of the config into a new file, which can be included from local.cfg
like this (I'm showing also the other needed parts that should be added locally):
include=features/enable-orcid.cfg
orcid.application-client-id =
orcid.application-client-secret =
event.dispatcher.default.consumers = authority, versioning, discovery, eperson
based on https://wiki.lyrasis.org/display/DSDOC7x/ORCID+Authority
configuration changes needed:
This is currently deployed on dspace-dev like this:
dspace-angular/docker/local.cfg
orcid-authority-services.xml
is mounted indocker/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
The wiki instructs me to run
bin/dspace index-authority
, but when I do that through docker dspace-cli image:docker cp 5603453344a9:/dspace/log/dspace.log /tmp/cli_dspace.log
? (where the id is obtained viadocker ps -a
) b. the error there isbut
@milanmajchrak does dspace-cli even see the
dspace-angular/docker/local.cfg
?summary:
local.cfg
)