In containers, can't set DATAVERSE_SITEURL using documented methods #10285
Labels
Component: Containers
Anything related to cloudy Dataverse, shipped in containers.
Size: 3
A percentage of a sprint. 2.1 hours.
Milestone
For context, I'm working on the following pull request...
... trying to help push our containers from "dev mode" to "demo mode".
A very important setting for a demo is
dataverse.siteUrl
but I can't set it using a Dockercompose.yml
using any of the methods documented at https://guides.dataverse.org/en/6.1/installation/config.html#dataverse-siteurlThese don't work:
@poikilotherm explained a workaround that does work:
That is to say, you have to prepend
_CT_
, probably because it's the name of the profile we use.This affects other settings as well, such as
DATAVERSE_SOLR_HOST
.My understanding of the problem is that we explicitly set the siteUrl here...
https://github.com/IQSS/dataverse/blob/v6.1/src/main/resources/META-INF/microprofile-config.properties#L9
... as
%ct.dataverse.siteUrl=http://${dataverse.fqdn}:8080
and we can't override it the way we expect.For now, for the demo/eval tutorial, I'll simply document the
_CT_
workaround, but I'm opening this issue to resolve the underlying problem.The following PR by @poikilotherm was already merged...
... and Payara 6.2023.12 and newer might include a fix. We should test and see.
There's additional discussion in Zulip: https://dataverse.zulipchat.com/#narrow/stream/375812-containers/topic/MPC.20profile.20problem/near/358512660
I'm giving this a size or 3 for:
The text was updated successfully, but these errors were encountered: