Docker (-Compose) deployment with environment not possible
See original GitHub issueWhat happened?
I’m trying to deploy Reposilite using Docker-Compose together with a postgresql database.
I’m using the -Dreposilite.property=value
syntax to configure the properties. However, it fails as soon as there are spaces in a value. I’ve tried quoting the value, escaping the spaces and quoting the complete -D...
parameter. Nothing worked.
After playing around a while, I found that the values were passed unquoted in the ENTRYPOINT
command, which seems to fail with a “Main class not found” error.
After overriding the entry point in the docker-compose.yml and quoting it there, it seems to work - at least it launches.
However, it seems like the values seem to be ignored. At least Reposilite still used an SQLite and the HTML meta tags still contained the default title etc. instead of the customized values.
Reposilite version
3.x
Relevant log output
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Yes, should be fine 😃
Ah, thanks! Does this also work for only “partial” overrides? e.g. leave most of the settings to their defaults but customize a few of them? Can I simply put the ones I’d like to modify in the file and they will override the defaults?