mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Use pipstrap to install a good version of pip
This commit is contained in:
parent
f5ed771d4f
commit
b020f94a01
4 changed files with 12 additions and 3 deletions
|
|
@ -7,6 +7,9 @@ RUN yum install -y epel-release
|
|||
|
||||
# Install pip, sudo and nose:
|
||||
RUN yum install -y python-pip sudo
|
||||
# Use pipstrap to install a stable and tested version of pip
|
||||
COPY ./pieces/pipstrap.py /opt
|
||||
RUN /opt/pipstrap.py
|
||||
RUN pip install nose
|
||||
|
||||
# Add an unprivileged user:
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@ RUN apt-get update && \
|
|||
apt-get -q -y install python-pip sudo openssl && \
|
||||
apt-get clean
|
||||
|
||||
ENV PIP_INDEX_URL https://pypi.python.org/simple
|
||||
# Use pipstrap to install a stable and tested version of pip
|
||||
COPY ./pieces/pipstrap.py /opt
|
||||
RUN /opt/pipstrap.py
|
||||
RUN pip install nose
|
||||
|
||||
# Let that user sudo:
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@ RUN sed -i.bkp -e \
|
|||
RUN apt-get update && \
|
||||
apt-get -q -y install python-pip && \
|
||||
apt-get clean
|
||||
# Use pipstrap to install a stable and tested version of pip
|
||||
COPY ./pieces/pipstrap.py /opt
|
||||
RUN /opt/pipstrap.py
|
||||
RUN pip install nose
|
||||
|
||||
RUN mkdir -p /home/lea/certbot
|
||||
|
|
|
|||
|
|
@ -10,8 +10,9 @@ RUN useradd --create-home --home-dir /home/lea --shell /bin/bash --groups sudo -
|
|||
RUN apt-get update && \
|
||||
apt-get -q -y install python-pip sudo openssl && \
|
||||
apt-get clean
|
||||
|
||||
ENV PIP_INDEX_URL https://pypi.python.org/simple
|
||||
# Use pipstrap to install a stable and tested version of pip
|
||||
COPY ./pieces/pipstrap.py /opt
|
||||
RUN /opt/pipstrap.py
|
||||
RUN pip install nose
|
||||
|
||||
# Let that user sudo:
|
||||
|
|
|
|||
Loading…
Reference in a new issue