Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
yosifkit merged 1 commit into
docker-library:masterdocker-library/python:masterfrom
infosiftr:pipinfosiftr/python:pipCopy head branch name to clipboard
Jul 16, 2014
Merged

Add "pip" to the python:2 image since it isn't included upstream#2
yosifkit merged 1 commit into
docker-library:masterdocker-library/python:masterfrom
infosiftr:pipinfosiftr/python:pipCopy head branch name to clipboard

Conversation

@tianon

@tianon tianon commented Jul 15, 2014

Copy link
Copy Markdown
Member

Fixes #1

@tianon

tianon commented Jul 15, 2014

Copy link
Copy Markdown
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)

@tianon

tianon commented Jul 15, 2014

Copy link
Copy Markdown
Member Author

ping @yosifkit

@yosifkit

Copy link
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.