Stream: containers

Topic: โœ” postgres default database name


view this post on Zulip kuhlaid (Dec 07 2023 at 22:48):

I'm trying to setup a test database environment for Docker and noticed that the database name is dataverse. I guess for the development environment is doesn't matter but I see lots of instances of dvndb as a database name in the main repository code. I'm just curious where this database name gets set for containers?

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 08 2023 at 13:26):

I think it comes from here: https://github.com/IQSS/dataverse/blob/develop/src/main/resources/META-INF/microprofile-config.properties#L35

view this post on Zulip Notification Bot (Dec 08 2023 at 14:34):

kuhlaid has marked this topic as resolved.

view this post on Zulip Oliver Bertuch (Dec 14 2023 at 07:50):

@Philip Durbin no it's not coming from that file. Oh how I wish it would work that way. These defaults are defined here: https://github.com/IQSS/dataverse/blob/1f9e10cfc8acb85780db641d1a6644eb62545b05/src/main/java/edu/harvard/iq/dataverse/util/DataSourceProducer.java#L24

view this post on Zulip Oliver Bertuch (Dec 14 2023 at 07:50):

The reason for this is the way how Payara works

view this post on Zulip Oliver Bertuch (Dec 14 2023 at 07:51):

We cannot have read properties from the WAR shipped microprofile-config.properties file when the @DataSourceDefinition is being handled.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 14 2023 at 11:49):

Right, right, @DataSourceDefinition. How soon I forget! Thanks!

view this post on Zulip Oliver Bertuch (Dec 14 2023 at 12:45):

rg dataverse.db.name :wink:

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 14 2023 at 13:22):

I wonder if we should mention this stuff in our docs for the base image. Or somewhere in the Container Guide (or maybe Dev Guide).

view this post on Zulip Oliver Bertuch (Dec 14 2023 at 14:12):

I'm sorry, mention what exactly?

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 14 2023 at 14:12):

That we're using @DataSourceDefinition. Maybe in the dev guide.


Last updated: Oct 30 2025 at 05:14 UTC