Hi,
first of all thanks for the awesome image!
I have 2 question that are one connected to the other. I'm trying to build a custom image to use with my app in a CI environment, so it would be perfect if it were all automatic:
- the setup step: in couchdb you're required to manually did this
- setting some config
I know I can create my local.ini with my custom config, sadly the config I need to set is
[couch_peruser]
enable = true
and it requires that the _usersdb exists. But it doesn't exist cause the setup is manual.
The couchdb documentation says that the setup step via the dashboard can be made also by manually create the database via the http API so tried to create that dbs using RUN curl -X PUT localhost:5984/_users but I realized that this is possible only after the service is started. I tried to put that cmds inside the entrypoint directive but it overrides your entrypoint so nothing works
Any hints on how to tackle this? thanks
Hi,
first of all thanks for the awesome image!
I have 2 question that are one connected to the other. I'm trying to build a custom image to use with my app in a CI environment, so it would be perfect if it were all automatic:
I know I can create my
local.iniwith my custom config, sadly the config I need to set isand it requires that the
_usersdb exists. But it doesn't exist cause the setup is manual.The couchdb documentation says that the setup step via the dashboard can be made also by manually create the database via the http API so tried to create that dbs using
RUN curl -X PUT localhost:5984/_usersbut I realized that this is possible only after the service is started. I tried to put that cmds inside the entrypoint directive but it overrides your entrypoint so nothing worksAny hints on how to tackle this? thanks