mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-25 07:47:18 +00:00
fix(scripts): Fix pip install in docker (#1818)
This works around the "Cannot fetch index base URL http://pypi.python.org/simple/" error by installing pip==9.0.1 directly from the pypi.python.org/packages/ Change-Type: patch
This commit is contained in:
parent
8caf03327c
commit
c0d25786ef
@ -20,8 +20,10 @@ RUN apt-get update \
|
||||
libasound2 \
|
||||
libgconf-2-4 \
|
||||
libgtk2.0-0 \
|
||||
libx11-xcb1 \
|
||||
libudev-dev \
|
||||
libusb-1.0-0-dev \
|
||||
libnss3 \
|
||||
libx11-xcb1 \
|
||||
libxss1 \
|
||||
libxtst6 \
|
||||
libyaml-dev \
|
||||
@ -49,4 +51,11 @@ RUN npm config set spin=false
|
||||
|
||||
# Python
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install --quiet -r requirements.txt
|
||||
|
||||
# FIXME: Work around "Cannot fetch index base URL http://pypi.python.org/simple/" error
|
||||
RUN curl "https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz" > pip-9.0.1.tar.gz \
|
||||
&& tar xvfz pip-9.0.1.tar.gz \
|
||||
&& cd pip-9.0.1 \
|
||||
&& python setup.py install
|
||||
|
||||
RUN pip --version && pip install --quiet -r requirements.txt
|
||||
|
@ -57,4 +57,11 @@ RUN npm config set spin=false
|
||||
|
||||
# Python
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install --quiet -r requirements.txt
|
||||
|
||||
# FIXME: Work around "Cannot fetch index base URL http://pypi.python.org/simple/" error
|
||||
RUN curl "https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz" > pip-9.0.1.tar.gz \
|
||||
&& tar xvfz pip-9.0.1.tar.gz \
|
||||
&& cd pip-9.0.1 \
|
||||
&& python setup.py install
|
||||
|
||||
RUN pip --version && pip install --quiet -r requirements.txt
|
||||
|
@ -56,4 +56,11 @@ RUN npm config set spin=false
|
||||
|
||||
# Python
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install --quiet -r requirements.txt
|
||||
|
||||
# FIXME: Work around "Cannot fetch index base URL http://pypi.python.org/simple/" error
|
||||
RUN curl "https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz" > pip-9.0.1.tar.gz \
|
||||
&& tar xvfz pip-9.0.1.tar.gz \
|
||||
&& cd pip-9.0.1 \
|
||||
&& python setup.py install
|
||||
|
||||
RUN pip --version && pip install --quiet -r requirements.txt
|
||||
|
@ -61,4 +61,11 @@ RUN npm config set spin=false
|
||||
|
||||
# Python
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install --quiet -r requirements.txt
|
||||
|
||||
# FIXME: Work around "Cannot fetch index base URL http://pypi.python.org/simple/" error
|
||||
RUN curl "https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz" > pip-9.0.1.tar.gz \
|
||||
&& tar xvfz pip-9.0.1.tar.gz \
|
||||
&& cd pip-9.0.1 \
|
||||
&& python setup.py install
|
||||
|
||||
RUN pip --version && pip install --quiet -r requirements.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user