Add "pip" to the python:2 image since it isn't included upstream#2
Merged
yosifkit merged 1 commit intodocker-library:masterfrom Jul 16, 2014
Merged
Add "pip" to the python:2 image since it isn't included upstream#2yosifkit merged 1 commit intodocker-library:masterfrom
yosifkit merged 1 commit intodocker-library:masterfrom
Conversation
Member
Author
$ 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) |
Member
Author
|
ping @yosifkit |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1