CyCoreSystems / docker-meteor

Dockerfile and script for running Meteor on Docker
MIT License
120 stars 73 forks source link

Private bitbucket repo? #10

Closed JulianKingman closed 8 years ago

JulianKingman commented 8 years ago

Is it possible to use this with a private bitbucket repo?

Ulexus commented 8 years ago

It should be, yes. I haven't tried it with Bitbucket, but you can use the DEPLOY_KEY environment variable to specify the path in which the script can find your private SSH key for the git connection. This works fine with Github, but I would like to know if you run into any trouble with Bitbucket.

JulianKingman commented 8 years ago

What’s the best practice on where to put your key? I’d imaging it’s not very secure to put it in a public dropbox folder or something.

Ulexus commented 8 years ago

I put it in a directory on each host, and then bind-mount that into place when starting the container. Again, that is done in the example unit file.

How you get it in the host is another thing, of course. I use my private Ceph cluster, but you can also use a password-protected S3 or something.

Regardless, make sure it is not you primary key. Make a special deployment key and give it read access only.

Ulexus commented 8 years ago

Closing this for cleanliness. Please reopen if it doesn't work, for some reason.