You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/07/03 08:53:28 UTC

[GitHub] [couchdb-docker] coreyfarrell opened a new issue #184: Set single_node using an environment variable?

coreyfarrell opened a new issue #184:
URL: https://github.com/apache/couchdb-docker/issues/184


   ## Expected Behavior
   I'm looking for a way to run a temporary couchdb container with `single_node=true` set.
   
   ## Current Behavior
   `single_mode=false` is the default, this causes system databases to not be created and spams the log with failed access.  The default be changed without mounting a volume or creating an inherited container image.
   
   ## Possible Solution
   Enable support for `-e COUCHDB_SINGLE_NODE=true` from the initialization script.
   
   ## Context
   I'm trying to use this container as part of an automated test suite for a daemon that will use couchdb for storage.  The hope is to use the following command to start a docker container:
   ```sh
   podman run \
     --rm \
     -e COUCHDB_USER=admin \
     -e COUCHDB_PASSWORD=admin \
     -e COUCHDB_SINGLE_NODE=true \
     -p 127.0.0.1:5984:5984 \
     docker.io/library/couchdb:3
   ```
   
   I attempted to mount ./fixtures/couchdb to /opt/couchdb/etc/local.d with a local.ini in that folder.  I received SELinux errors first then adding the `:Z` option to the folder mount gave an error `relabeling content in /usr is not allowed` (my code is under `/usr/src`).  I then tried using `mktemp -d` and copying my local.ini to that temp directory.  This allowed couchdb-docker to start and recognize `single_node=true` but unfortunately resulted in the temporary directory ownership being taken over (so removing it after the container runs would require sudo).
   
   ## Your Environment
   * Version used: 3.1.0
   * Browser Name and version: None
   * Operating System and version (desktop or mobile): Fedora 32, using podman 2.0.1.
   * Link to your project: N/A
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-docker] wohali commented on issue #184: Set single_node using an environment variable?

Posted by GitBox <gi...@apache.org>.
wohali commented on issue #184:
URL: https://github.com/apache/couchdb-docker/issues/184#issuecomment-653926665


   I am indeed -1 on the concept, for all the reasons previously stated, but if @janl wants to override me, I haven't decided if I will actually throw a technical veto against it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-docker] janl commented on issue #184: Set single_node using an environment variable?

Posted by GitBox <gi...@apache.org>.
janl commented on issue #184:
URL: https://github.com/apache/couchdb-docker/issues/184#issuecomment-653438340


   Duplicate of https://github.com/apache/couchdb/discussions/2948
   
   basically: PRs welcome ;)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-docker] janl commented on issue #184: Set single_node using an environment variable?

Posted by GitBox <gi...@apache.org>.
janl commented on issue #184:
URL: https://github.com/apache/couchdb-docker/issues/184#issuecomment-654079642


   Oops sorry, I must have missed those objections, where can I find them?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-docker] coreyfarrell commented on issue #184: Set single_node using an environment variable?

Posted by GitBox <gi...@apache.org>.
coreyfarrell commented on issue #184:
URL: https://github.com/apache/couchdb-docker/issues/184#issuecomment-653898119


   I would be happy to make a PR for this but it seems like @wohali has strong objection to adding this environmental variable?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-docker] janl closed issue #184: Set single_node using an environment variable?

Posted by GitBox <gi...@apache.org>.
janl closed issue #184:
URL: https://github.com/apache/couchdb-docker/issues/184


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-docker] janl commented on issue #184: Set single_node using an environment variable?

Posted by GitBox <gi...@apache.org>.
janl commented on issue #184:
URL: https://github.com/apache/couchdb-docker/issues/184#issuecomment-654094049


   ah I found this: https://github.com/apache/couchdb/discussions/2948#discussioncomment-29228
   
   I’d be okay for “one more env var” if this was the last one, as it is a basic setup thing (kinda like admin user/pass) , but I’m equally fine with letting folks do this the proper way.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org