hectcastro / docker-riak-cs

A Docker project to bring up a local Riak CS cluster.
https://registry.hub.docker.com/u/hectcastro/riak-cs/
Apache License 2.0
42 stars 21 forks source link

Auto print cred #5

Closed pmarques closed 10 years ago

pmarques commented 10 years ago

Automatically download ssh insecure key to print credentials to simplify the steps of S3 configuration https://github.com/hectcastro/docker-riak-cs#amazon-s3

hectcastro commented 10 years ago

Great idea, @pmarques. I left a few comments above. If we can get those sorted out, I'd be happy to merge.

hectcastro commented 10 years ago

I just realized that this won't work as is for people using boot2docker. The SSH command will attempt to SSH into the container, but the container itself lives inside the boot2docker VM.

Best alternative I can come up with is to expose the SSH port of the containers, allowing users to SSH directly from the boot2docker host.

pmarques commented 10 years ago

I don't know very well boot2docker, but another solution could be to use "boot2docker ssh" as tunnel or if it is support run a command like in ssh

pmarques commented 10 years ago

If you use boot2docker can you test if using boot2docker ssh instead of ssh in start-cluster.sh line 74

hectcastro commented 10 years ago

Can you please trying cherry-picking this commit to see if it works against your setup? I just tested it with boot2docker and it appears to work: https://github.com/hectcastro/docker-riak-cs/commit/23a3e71421ff3744bc6c6c42b38d9d92cb8ecf63.

pmarques commented 10 years ago

It works :)

hectcastro commented 10 years ago

Great! Can you include that commit in this pull request? I'll re-test after that and merge.

hectcastro commented 10 years ago

Thanks for your help, @pmarques. Merged in https://github.com/hectcastro/docker-riak-cs/commit/348759399635d3f813060e95fcac922c6bdeccfa.