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 2019/08/09 15:44:28 UTC

[GitHub] [couchdb-docker] drvan commented on issue #147: Make UID & GID configurable

drvan commented on issue #147: Make UID & GID configurable
URL: https://github.com/apache/couchdb-docker/issues/147#issuecomment-519967853
 
 
   @tianon I'm trying to run couchdb on openshift which doesn't allow containers to start/run as root - I'm attempting to follow the examples you listed above to allow use of `--user` but I'm primarily trying to solve this by trial/error, with limited success.
   
   I've put all the chown/chmods in `if [ "$1" = '/opt/couchdb/bin/couchdb' -a "$(id -u)" = '0' ];`, per your suggestion. There's a `touch` line [here](https://github.com/apache/couchdb-docker/blob/master/2.3.1/docker-entrypoint.sh#L56) that I'm not entirely sure what to do with (move it into the Dockerfile?) that I've simply commented out for now. The current result is that I can now run this by specifying the explicit couchdb uid (--user 5984:5984) but any other user causes erlang to crash with what looks like permission errors. As of now, here's what I have: https://gist.github.com/drvan/b7bd8a2015bac91b64eabe60d90fb6a1
   
   Any guidance/direction would be incredibly helpful, and happy to submit a PR when all is said and done. 

----------------------------------------------------------------
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


With regards,
Apache Git Services