Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with official CouchDB images #5

Closed
almereyda opened this issue Feb 13, 2016 · 9 comments
Closed

Usage with official CouchDB images #5

almereyda opened this issue Feb 13, 2016 · 9 comments

Comments

@almereyda
Copy link

The https://github.com/frodenas/docker-couchdb repository seems pretty unmaintained, while there is active work being done to release an official couchdb Docker image.

How would one migrate this dokku plugin to that one?

@almereyda
Copy link
Author

What I found so far is, when ssh'ing into the Dokku host, the COUCHDB_IMAGE and COUCHDB_IMAGE_VERSION environment variables are being respected.
But this doesn't work with an alias for dokku on a remote client like alias dokku='ssh -t dokku@apps.dokku.me'.

Thus I managed to create a CouchDB image from my almereyda/geocouch, but there doesn't seem to be integration of credentials management. It is successfully connected to the desired applications container and running as admin party.

Due to that error, the expected database is also not being created, as the plugin assumes to use nonworking credentials.

@almereyda almereyda changed the title Use official CouchDB images Use of official CouchDB images Feb 13, 2016
@almereyda almereyda changed the title Use of official CouchDB images Usage with official CouchDB images Feb 13, 2016
@almereyda
Copy link
Author

The logic from

should therefore be migrated into a fork of

adapted to

  • the host mounted data volume respecting the location of the filesystem database storage within the soon-to-be-official couchdb image
  • followed by frodenas' curl commands

and https://github.com/dokku/dokku-couchdb/blob/master/config#L2-L3

  • pointing to couchdb:1.6.1.

@josegonzalez
Copy link
Member

@almereyda Do you mind creating a PR with this functionality?

@almereyda
Copy link
Author

No, I am actually keen on it. But for that we need to adapt @klaemo's
images to accept environment variables containing admin credentials and
further configuration options.

On 19 April 2016 at 17:55, Jose Diaz-Gonzalez notifications@github.com
wrote:

@almereyda https://github.com/almereyda Do you mind creating a PR with
this functionality?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#5 (comment)

@josegonzalez
Copy link
Member

Feel free to take a crack at it.

@klaemo
Copy link

klaemo commented Apr 21, 2016

I've a PR open to allow config via env vars. Is that what your looking for? It it's okay, I'll merge it and kick off an image update.

@almereyda
Copy link
Author

As the PR mentioned above has been merged, it seems more easy to update this repository here. I may have time to check this out next week.

@klaemo
Copy link

klaemo commented May 10, 2016

yep, the official image now supports env vars https://hub.docker.com/_/couchdb/

@josegonzalez
Copy link
Member

Closing as no one is interested in working on this. Feel free to submit a PR if you are :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants