Dont install pip with apt

Upgrading pip afterwards gave problems, so installing it using get-pip
remotes/origin/no-uploadlimit-63
Stefan Verhoeven 6 years ago
parent be4dad7bde
commit 53e2998e58

@ -6,7 +6,7 @@ MAINTAINER Stefan Verhoeven <s.verhoeven@esciencecenter.nl>
# Configuring locales # Configuring locales
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y -q apt-utils && apt-get install -y -q locales && dpkg-reconfigure locales && \ RUN apt-get update && apt-get install -y -q apt-utils software-properties-common locales && dpkg-reconfigure locales && \
locale-gen en_US.UTF-8 && \ locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8 update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8 ENV LANG en_US.UTF-8
@ -14,6 +14,8 @@ ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8 ENV LC_ALL en_US.UTF-8
RUN useradd -m -d /home/cartodb -s /bin/bash cartodb && \ RUN useradd -m -d /home/cartodb -s /bin/bash cartodb && \
add-apt-repository -y ppa:chris-lea/redis-server && \
apt-get update && \
apt-get install -y -q \ apt-get install -y -q \
build-essential \ build-essential \
autoconf \ autoconf \
@ -59,7 +61,6 @@ RUN useradd -m -d /home/cartodb -s /bin/bash cartodb && \
python-argparse \ python-argparse \
python-gdal \ python-gdal \
python-chardet \ python-chardet \
python-pip \
python-all-dev \ python-all-dev \
python-docutils \ python-docutils \
openssl \ openssl \
@ -151,6 +152,7 @@ RUN sed -i 's/\(peer\|md5\)/trust/' /etc/postgresql/9.5/main/pg_hba.conf && \
# Crankshaft: CARTO Spatial Analysis extension for PostgreSQL # Crankshaft: CARTO Spatial Analysis extension for PostgreSQL
RUN cd / && \ RUN cd / && \
curl https://bootstrap.pypa.io/get-pip.py | python && \
git clone https://github.com/CartoDB/crankshaft.git && \ git clone https://github.com/CartoDB/crankshaft.git && \
cd /crankshaft && \ cd /crankshaft && \
git checkout master && \ git checkout master && \
@ -192,7 +194,6 @@ RUN git clone --recursive git://github.com/CartoDB/cartodb.git && \
npm install && \ npm install && \
rm -r /tmp/npm-* /root/.npm && \ rm -r /tmp/npm-* /root/.npm && \
perl -pi -e 's/gdal==1\.10\.0/gdal==1.11.3/' python_requirements.txt && \ perl -pi -e 's/gdal==1\.10\.0/gdal==1.11.3/' python_requirements.txt && \
pip install --upgrade pip && \
pip install --no-binary :all: -r python_requirements.txt && \ pip install --no-binary :all: -r python_requirements.txt && \
/bin/bash -l -c 'bundle install' && \ /bin/bash -l -c 'bundle install' && \
cp config/grunt_development.json ./config/grunt_true.json && \ cp config/grunt_development.json ./config/grunt_true.json && \

Loading…
Cancel
Save