Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Docs to go with the 0.1.0 release #14

Merged
merged 6 commits into from Mar 31, 2016
Merged

Conversation

lazypower
Copy link
Contributor

No description provided.

Charles Butler added 4 commits March 23, 2016 20:40
This commit restructures the core of charms.docker to follow the python best practice of import modules in the __init__.py file for a nicer UX

You can now import like so:

`from charms.docker import Compose`
or
`from charms.docker import DockerOpts`

This also brings with it a pretty hefty update to the Compose class, implementing methods and tests for the following methods:

 - start
- stop
- pull
- restart
- build
- scale

It also splits apart the private __run method into a separate module known as 'runner'.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling aaad87f on chuckbutler:Docs into * on juju-solutions:master*.

@lazypower lazypower added this to the v0.1.0 milestone Mar 31, 2016
a charmer. Provides stateless operations of a running docker daemon
'''

def __init__(self, socket="unix:///var/run/docker.sock", workspace=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

too many slashes here. I don't think you were intending for unix colon slash slash slash

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you sure? :) See the daemon options, specifically the -H option: https://docs.docker.com/engine/quickstart/

Copy link
Contributor

Choose a reason for hiding this comment

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

OK I see the issue, it is using the third slash as the root dir. If this is correct, you should fix all other uses that do not have three slashes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, and done. Thanks for pointing that out, I completely missed it even after you called out the funky one that was indeed correct. #whatamidoingwithmylife

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 928d11c on chuckbutler:Docs into * on juju-solutions:master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 26debea on chuckbutler:Docs into * on juju-solutions:master*.

@mbruzek
Copy link
Contributor

mbruzek commented Mar 31, 2016

The code looks good to me. I am not a restructured text expert, so not sure there. The coverage is high and the tests pass +1.

@mbruzek mbruzek merged commit 8b8fe79 into juju-solutions:master Mar 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants