Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Adding the option to set a nodename using an environment variable. #82

Closed
wants to merge 4 commits into from

Conversation

romainrbr
Copy link

As of now, it is impossible to create a multi-host cluster using the klaemo/couchdb:2.0-single image as all nodes are called nonode@nohost.

With this PR we could set the hostname without having to use a volume for vm.args, using environment variables.
docker run -d -p 5984:5984 --name couchdb -e "nodename=$HOSTNAME" klaemo/couchdb:2.0-single

@klaemo
Copy link
Owner

klaemo commented Oct 25, 2016

Cool, could we uppercase the env var (NODENAME) to be inline with other env vars?

Thanks for you work on this and sorry for the late reply!

@klaemo
Copy link
Owner

klaemo commented Oct 25, 2016

Oh and a line in the readme explaining this option would be lovely :)

@klaemo klaemo closed this in 2635562 Nov 13, 2016
@klaemo
Copy link
Owner

klaemo commented Nov 13, 2016

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants