Skip to content

Add "pip" to the python:2 image since it isn't included upstream #2

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

Merged
merged 1 commit into from
Jul 16, 2014

Conversation

tianon
Copy link
Member

@tianon tianon commented Jul 15, 2014

Fixes #1

@tianon
Copy link
Member Author

tianon commented Jul 15, 2014

$ docker build -t infosiftr/python:2 2
...
rm -f /usr/local/share/man/man1/python2.1
(cd /usr/local/share/man/man1; ln -s python2.7.1 python2.1)
rm -f /usr/local/share/man/man1/python.1
(cd /usr/local/share/man/man1; ln -s python2.1 python.1)
find . -name '*.py[co]' -exec rm -f {} ';'
find . -name '*.[oa]' -exec rm -f {} ';'
find . -name '*.s[ol]' -exec rm -f {} ';'
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
find build -name 'fficonfig.h' -exec rm -f {} ';' || true
find build -name 'fficonfig.py' -exec rm -f {} ';' || true
rm -f Lib/lib2to3/*Grammar*.pickle
 ---> 553508b7dd1d
Removing intermediate container 537c3e8f01c3
Step 7 : RUN curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2
 ---> Running in bb7d99b3532c
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1309k  100 1309k    0     0   921k      0  0:00:01  0:00:01 --:--:--  921k
Downloading/unpacking pip
Downloading/unpacking setuptools
Installing collected packages: pip, setuptools
Successfully installed pip setuptools
Cleaning up...
 ---> 1af6434effa5
Removing intermediate container bb7d99b3532c
Step 8 : CMD ["python2"]
 ---> Running in 56111cc16608
 ---> 9130fa0b17c8
Removing intermediate container 56111cc16608
Successfully built 9130fa0b17c8
$ docker run --rm infosiftr/python:2 pip --version
pip 1.5.6 from /usr/local/lib/python2.7/site-packages (python 2.7)

@tianon
Copy link
Member Author

tianon commented Jul 15, 2014

ping @yosifkit

@yosifkit
Copy link
Member

LGTM

yosifkit added a commit that referenced this pull request Jul 16, 2014
Add "pip" to the python:2 image since it isn't included upstream
@yosifkit yosifkit merged commit 771cb8f into docker-library:master Jul 16, 2014
@yosifkit yosifkit deleted the pip branch July 16, 2014 00:17
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.

Install pip by default?
2 participants