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 2018/07/12 13:01:58 UTC

[GitHub] thomaspre opened a new issue #89: End of line expected in docker.ini

thomaspre opened a new issue #89: End of line expected in docker.ini
URL: https://github.com/apache/couchdb-docker/issues/89
 
 
   The docker entry-point.sh add the admin credentials passed in docker start parameter.
   If you use a config file named docker.ini and forget to add a new line at the end of file, it will be add next to the last line.
   Name the config file docker.ini is maybe not a good idea, but i lost time to understand this.
   (Same thing for COUCHDB_SECRET)
   
   ## Expected Behavior
   The last lines of docker.ini have to be 
   ```
   [chttpd]
   bind_address = 0.0.0.0;
   [admins]
   couchdb_user = couchdb_password
   ```
   
   ## Current Behavior
   ```
   [chttpd]
   bind_address = 0.0.0.0;[admins]
   couchdb_user = couchdb_password
   ```
   
   ## Possible Solution
   In docker entrypoint : 
   `printf "[admins]\n%s = %s\n" "$COUCHDB_USER" "$COUCHDB_PASSWORD" >> /opt/couchdb/etc/local.d/docker.ini`
   change it to :
   ` printf "\n[admins]\n%s = %s\n" "$COUCHDB_USER" "$COUCHDB_PASSWORD" >> /opt/couchdb/etc/local.d/docker.ini`
   
   ## Steps to Reproduce (for bugs)
   1. start the docker with couchdb_user in parameters and copy or mounted config file named docker.ini
   2. docker exec -it couchdb cat /opt/couchdb/etc/local.d/docker.ini
   
   ## Your Environment
   * Version used: Docker version 18.03.0-ce, build 0520e24, docker-machine version 0.14.0, build 89b8332
   * Browser Name and version: NC
   * Operating System and version (desktop or mobile): docker-machine
   * Link to your project: www.doc.fr

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services