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

Package docker-py for ubuntu, fedora... #218

Closed
julienvey opened this issue May 7, 2014 · 9 comments
Closed

Package docker-py for ubuntu, fedora... #218

julienvey opened this issue May 7, 2014 · 9 comments

Comments

@julienvey
Copy link

We are trying to integrate docker-py into openstack requirements.
In order to do this, it needs to be packaged for at least ubuntu and fedora
Here is the review concerned https://review.openstack.org/#/c/76535/

Are there any plans about this ?

@mpetazzoni
Copy link
Contributor

Any particular reason why this can't be achieved with this?

# apt-get install python-pip
# pip install docker-py

@julienvey
Copy link
Author

I think the main reason is to be able to create packages for openstack services, such that when installing, for instance nova, it will directly fetch all packaged dependencies, without having to use pip.

@eliasp
Copy link

eliasp commented Jun 24, 2014

I agree with @julienvey here.

Proper distribution packages should always be preferred to language-specific packager managers, as they act outside the actual package management and just introduce a lot of inconsistencies and unmanaged/dead files.

@mpetazzoni
Copy link
Contributor

Agreed. I personally abhor language-specific package maintainers because you end up with a mixed soup of distribution-installed and language-installed packages. But the problem with distribution packages is that it becomes impossible to have multiple versions of the same package installed on the system (hence virtualenvs, etc).

That being said, that's a problem that the user can deal with if they have/want to, and doesn't really prevent us from creating .deb and .rpm packages of docker-py. Do you feel like you'd be able to take a crack at it and send a pull request?

The most difficult part is to then get these packages into the distribution, but in the meantime maybe they can be distributed on `get.docker.io?

@tianon
Copy link
Contributor

tianon commented Jul 9, 2014

This is already done in Debian via python-docker, which I'm working on updating to help out @paultag, but I've run into a snag where the requirements.txt file specifies exact versions (==) of deps instead of >=; is there a good reason for this that someone can point me to?

@shin-
Copy link
Contributor

shin- commented Jul 9, 2014

@tianon : #101

@tianon
Copy link
Contributor

tianon commented Jul 9, 2014

Thanks for the pointer @shin-

@bfirsh
Copy link
Contributor

bfirsh commented Nov 28, 2016

@bfirsh bfirsh closed this as completed Nov 28, 2016
@Frodox
Copy link

Frodox commented Dec 25, 2018

@tianon
@bfirsh

hi! what about supporting docker package also?
I used python-docker, but just faced with ansible/ansible#42162 , and there are info

docker-py is no longer maintained (last release from November 2016), you should install docker instead

So... after uninstalling python-docker and installing pip install docker it works, but it would be great to install it as deb-package, and not pip-package.

tanaypf9 pushed a commit to tanaypf9/pf9-requirements that referenced this issue May 20, 2024
Patch Set 2:

Agree with Paul.

In the meantime, I created an issue in the docker-py github repo, to see if they can manage to package it docker/docker-py#218

Patch-set: 2
Reviewer: Gerrit User 9537 <9537@4a232e18-c5a9-48ee-94c0-e04e7cca6543>
Label: Verified=0
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

No branches or pull requests

7 participants