Skip to content

Conversation

zvikagart
Copy link
Contributor

Greetings Friends!

I've made the following changes to the package:

  • update and simplify container cleanup logic
  • refactor image and container cleanup to own sub commands
  • generalize image selection

More details inside.

The changes are breaking so I versioned it 2.0.

refactor image and container cleanup to own sub commands
generalize image selection
def include_container(container, args):
"""
Return truthy if container should be removed.
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only exited containers or containers that have been created but not started are considered for removal.

Note that I removed the support for data containers.
In latest docker versions data volumes are first class objects and should be created with docker volume command instead of creating data containers. This removes the guesswork we had here before.

srikalyan added a commit that referenced this pull request Mar 4, 2016
@srikalyan srikalyan merged commit d85518f into locationlabs:master Mar 4, 2016
@zvikagart
Copy link
Contributor Author

Thanks for merging.
Can you push this version to pypi? I don't see it there
https://pypi.python.org/pypi/dockerrotate

@wheremiah
Copy link
Contributor

Looks like an auth error when travis is pushing to pypi.
HTTPError: 401 Client Error: You must be identified to edit package information for url: https://pypi.python.org/pypi
I will try to take a look at what is causing the error tomorrow.

@wheremiah
Copy link
Contributor

Hey Zvika, I am not sure why this is failing to push to pypi. We are getting an auth error, but I see other builds that look like they were successfully pushed with the same creds. I'm gonna have to look a little more.

@zvikagart
Copy link
Contributor Author

I see in .travis.yml file that Jesse's credentials are used to push to pypi
might be the reason

On Tue, Mar 8, 2016 at 10:19 AM wheremiah notifications@github.com wrote:

Hey Zvika, I am not sure why this is failing to push to pypi. We are
getting an auth error, but I see other builds that look like they were
successfully pushed with the same creds. I'm gonna have to look a little
more.


Reply to this email directly or view it on GitHub
#8 (comment)
.

@wheremiah
Copy link
Contributor

I thought so too, but those still worked for mockredispy. We're gonna need
to get that updated in any case though.

On Tue, Mar 8, 2016 at 1:52 AM, zvikagart notifications@github.com wrote:

I see in .travis.yml file that Jesse's credentials are used to push to pypi
might be the reason

On Tue, Mar 8, 2016 at 10:19 AM wheremiah notifications@github.com
wrote:

Hey Zvika, I am not sure why this is failing to push to pypi. We are
getting an auth error, but I see other builds that look like they were
successfully pushed with the same creds. I'm gonna have to look a little
more.


Reply to this email directly or view it on GitHub
<
#8 (comment)

.


Reply to this email directly or view it on GitHub
#8 (comment)
.

@wheremiah
Copy link
Contributor

Hey Zvika, this should be available on pypi now. The version is 2.0.1. I guess it was related to the credentials. Lemme know if you have any trouble, and thanks for the updates to docker-rotate!

@zvikagart
Copy link
Contributor Author

Great. Thanks.

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