Skip to content

2: add virtualenv #9

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 2 commits into from
Sep 15, 2014
Merged

2: add virtualenv #9

merged 2 commits into from
Sep 15, 2014

Conversation

proppy
Copy link
Contributor

@proppy proppy commented Sep 9, 2014

Tested with:

proppy@noir:~/python/2$ docker run -ti python:2 bash
root@6b01e15ce5d6:/usr/src/python# virtualenv

:3 already has pyvenv

# install "pip", since the vast majority of users of this image will want it
RUN curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2
# install "pip" and "virtualenv", since the vast majority of users of this image will want it
RUN curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 && pip install virtualenv
Copy link
Member

Choose a reason for hiding this comment

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

Why not do virtualenv in a separate RUN line, and thus have something that's easy to copy/paste into 3/Dockerfile too? 😄

Copy link
Member

Choose a reason for hiding this comment

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

Ahh, nevermind, just noticed your comment on the description about pyvenv - but the separate RUN line question still applies. Do we gain anything from this being together like this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not really, I will move it to a separate RUN line if you prefer.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I think it would improve future readability. :)

@proppy
Copy link
Contributor Author

proppy commented Sep 15, 2014

PTAL

Tested:

docker run  proppy/python virtualenv --version
1.11.6

@yosifkit
Copy link
Member

LGTM

yosifkit added a commit that referenced this pull request Sep 15, 2014
@yosifkit yosifkit merged commit 310c3ca into docker-library:master Sep 15, 2014
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.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy