s2i/venv: Add enough packages to build non-wheel matplotlib

Eventually we should probably switch to a 2 stage build, but until
then this is good enough
pull/22/head
yuvipanda 2017-06-01 12:01:51 -07:00
rodzic 51c5f72b45
commit df934df0b4
4 zmienionych plików z 13 dodań i 5 usunięć

Wyświetl plik

@ -140,8 +140,8 @@ class PythonBuildPack(S2IBuildPack):
"""Build Pack for installing from a pip requirements.txt using S2I""" """Build Pack for installing from a pip requirements.txt using S2I"""
name = Unicode('python-pip') name = Unicode('python-pip')
runtime_builder_map = Dict({ runtime_builder_map = Dict({
'python-2.7': 'jupyterhub/singleuser-builder-venv-2.7:v0.2.0', 'python-2.7': 'jupyterhub/singleuser-builder-venv-2.7:v0.2.1',
'python-3.5': 'jupyterhub/singleuser-builder-venv-3.5:v0.2.0', 'python-3.5': 'jupyterhub/singleuser-builder-venv-3.5:v0.2.1',
}) })
runtime = Unicode( runtime = Unicode(

Wyświetl plik

@ -8,9 +8,14 @@ ENV APP_DIR /srv/app
ENV PATH ${APP_DIR}/venv/bin:$PATH ENV PATH ${APP_DIR}/venv/bin:$PATH
RUN apt-get update && \ RUN apt-get update && \
apt-get install --yes --no-install-recommends \ apt-get install --yes \
python3 \ python3 \
python3-venv \ python3-venv \
python3-dev \
build-essential \
pkg-config \
libfreetype6-dev \
libpng-dev \
tar \ tar \
git \ git \
locales && \ locales && \

Wyświetl plik

@ -8,10 +8,13 @@ ENV APP_DIR /srv/app
ENV PATH ${APP_DIR}/venv/bin:$PATH ENV PATH ${APP_DIR}/venv/bin:$PATH
RUN apt-get update && \ RUN apt-get update && \
apt-get install --yes --no-install-recommends \ apt-get install --yes \
python \ python \
python-dev \ python-dev \
build-essential \ build-essential \
pkg-config \
libfreetype6-dev \
libpng-dev \
virtualenv \ virtualenv \
tar \ tar \
git \ git \

Wyświetl plik

@ -1 +1 @@
v0.2.0 v0.2.1