Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Adds login method and refactors run #10
Conversation
chuckbutler
added some commits
Jan 12, 2016
|
@marcoceppi Can I get a |
|
With the new comments, the doc came out pretty nice too
|
chuckbutler
changed the title from
Adds login method to docker object
to
Adds login method and refactors run
Jan 13, 2016
chuckbutler
added
enhancement
docs
labels
Jan 13, 2016
chuckbutler
added this to the v0.0.7 milestone
Jan 13, 2016
BillWatts
commented
Jan 13, 2016
|
|
mbruzek
reviewed
Jan 13, 2016
| + @param image - string of the container to pull from the registry, | ||
| + eg: ubuntu:latest | ||
| + @param options - array of string options, eg: ['-d', '-v /tmp:/tmp'] | ||
| + @param commands - array of string commands, eg: ['ls'] |
mbruzek
Jan 13, 2016
Contributor
Commands is an array? Can you give the docker images more than one command? From the usage it looks like just one command.
mbruzek
reviewed
Jan 13, 2016
| + @param email - Email address on account (dockerhub) | ||
| + ''' | ||
| + cmd = ['docker', 'login', '-u', user, '-p', password, '-e', email] | ||
| + subprocess.check_call(cmd) |
mbruzek
Jan 13, 2016
Contributor
Should we call the login command in an try/catch so that failed login does not exit the python program? It is fine for now but a possible future improvement.
|
I had a few minor questions but nothing blocking this excellent, docstringed code from landing in the upstream. Thanks for making these classes and tests! |
added a commit
that referenced
this pull request
Jan 13, 2016
mbruzek
merged commit 5db2855
into
juju-solutions:master
Jan 13, 2016
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chuckbutler commentedJan 12, 2016
No description provided.