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

Improve contributing instructions #580

Merged
merged 3 commits into from
Oct 24, 2014

Conversation

bfirsh
Copy link

@bfirsh bfirsh commented Oct 23, 2014

No description provided.

It's less important than signing your work.

Signed-off-by: Ben Firshman <[email protected]>
1. Set up a development environment `python setup.py develop`. That will install the dependencies and set up a symlink from your `fig` executable to the checkout of the repo. So from any of your fig projects, `fig` now refers to your development project. Time to start hacking : )
1. Works for you? Run the test suite via `./script/test` to verify it won't break other usecases.
1. All good? Commit and push to GitHub, and submit a pull request.
1. Set up a development environment by running `python setup.py develop`. This will install the dependencies and set up a symlink from your `fig` executable to the checkout of the repository. When you now run `fig` from anywhere on your machine, it will run your development version of Fig.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does python setup.py develop actually work? It did not work for me.

I've been using tox/virtualenv, it doesn't create the global fig executable (which I see as a plus), but if you're in the virtualenv , it will use your local checkout.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does work, I think. Works for me at least.

I think I'd much prefer some kind of wrapper script which ran the Fig development environment inside Docker. Something like...

#!/bin/bash
docker build -t fig .
docker run -v /var/run/docker.sock:/var/run/docker.sock fig bin/fig $@

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python setup.py develop works for me too (inside a virtualenv at least).

It'd be cool to be able to do it all in Docker and ditch virtualenv, but we'd need to figure out how to simultaneously be able to work on dependencies such as docker-py or dockerpty (both of which I needed to have local checkouts of in order to get TLS working, for example).

@aanand
Copy link

aanand commented Oct 24, 2014

LGTM

aanand added a commit that referenced this pull request Oct 24, 2014
@aanand aanand merged commit a83876d into docker:master Oct 24, 2014
yuval-k pushed a commit to yuval-k/compose that referenced this pull request Apr 10, 2015
…ctions

Improve contributing instructions
Signed-off-by: Yuval Kohavi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants