diff --git a/.travis.yml b/.travis.yml index e9ad82136..1746dbb3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,6 @@ env: - VERSION=3.3 VARIANT=slim - VERSION=3.3 VARIANT=alpine - VERSION=3.3 VARIANT=wheezy - - VERSION=3.2 VARIANT= - - VERSION=3.2 VARIANT=slim - - VERSION=3.2 VARIANT=wheezy - VERSION=2.7 VARIANT= - VERSION=2.7 VARIANT=slim - VERSION=2.7 VARIANT=alpine diff --git a/3.2/Dockerfile b/3.2/Dockerfile deleted file mode 100644 index 2ee8ba9b5..000000000 --- a/3.2/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -FROM buildpack-deps:jessie - -# remove several traces of debian python -RUN apt-get purge -y python.* - -# http://bugs.python.org/issue19846 -# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. -ENV LANG C.UTF-8 - -# gpg: key 36580288: public key "Georg Brandl (Python release signing key) " imported -ENV GPG_KEY 26DEA9D4613391EF3E25C9FF0A5B101836580288 - -ENV PYTHON_VERSION 3.2.6 - -# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" -ENV PYTHON_PIP_VERSION 7.1.2 - -RUN set -ex \ - && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \ - && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ - && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ - && gpg --verify python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz* \ - && rm -r ~/.gnupg \ - \ - && cd /usr/src/python \ - && ./configure --enable-shared --enable-unicode=ucs4 \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - && curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \ - && pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \ - && find /usr/local \ - \( -type d -a -name test -o -name tests \) \ - -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - -exec rm -rf '{}' + \ - && rm -rf /usr/src/python - -# make some useful symlinks that are expected to exist -RUN cd /usr/local/bin \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python-config3 python-config - -CMD ["python3"] diff --git a/3.2/onbuild/Dockerfile b/3.2/onbuild/Dockerfile deleted file mode 100644 index be0d3654d..000000000 --- a/3.2/onbuild/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM python:3.2 - -RUN mkdir -p /usr/src/app -WORKDIR /usr/src/app - -ONBUILD COPY requirements.txt /usr/src/app/ -ONBUILD RUN pip install --no-cache-dir -r requirements.txt - -ONBUILD COPY . /usr/src/app diff --git a/3.2/slim/Dockerfile b/3.2/slim/Dockerfile deleted file mode 100644 index e00e1e7e9..000000000 --- a/3.2/slim/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM debian:jessie - -# remove several traces of debian python -RUN apt-get purge -y python.* - -# http://bugs.python.org/issue19846 -# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. -ENV LANG C.UTF-8 - -RUN apt-get update && apt-get install -y --no-install-recommends \ - ca-certificates \ - libsqlite3-0 \ - libssl1.0.0 \ - && rm -rf /var/lib/apt/lists/* - -# gpg: key 36580288: public key "Georg Brandl (Python release signing key) " imported -ENV GPG_KEY 26DEA9D4613391EF3E25C9FF0A5B101836580288 - -ENV PYTHON_VERSION 3.2.6 - -# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" -ENV PYTHON_PIP_VERSION 7.1.2 - -RUN set -ex \ - && buildDeps=' \ - curl \ - gcc \ - libbz2-dev \ - libc6-dev \ - libncurses-dev \ - libreadline-dev \ - libsqlite3-dev \ - libssl-dev \ - make \ - xz-utils \ - zlib1g-dev \ - ' \ - && apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ - && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \ - && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ - && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ - && gpg --verify python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz* \ - && rm -r ~/.gnupg \ - \ - && cd /usr/src/python \ - && ./configure --enable-shared --enable-unicode=ucs4 \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - && curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \ - && pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \ - && find /usr/local \ - \( -type d -a -name test -o -name tests \) \ - -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - -exec rm -rf '{}' + \ - && apt-get purge -y --auto-remove $buildDeps \ - && rm -rf /usr/src/python - -# make some useful symlinks that are expected to exist -RUN cd /usr/local/bin \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python-config3 python-config - -CMD ["python3"] diff --git a/3.2/wheezy/Dockerfile b/3.2/wheezy/Dockerfile deleted file mode 100644 index 76ace4329..000000000 --- a/3.2/wheezy/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -FROM buildpack-deps:wheezy - -# remove several traces of debian python -RUN apt-get purge -y python.* - -# http://bugs.python.org/issue19846 -# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. -ENV LANG C.UTF-8 - -# gpg: key 36580288: public key "Georg Brandl (Python release signing key) " imported -ENV GPG_KEY 26DEA9D4613391EF3E25C9FF0A5B101836580288 - -ENV PYTHON_VERSION 3.2.6 - -# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" -ENV PYTHON_PIP_VERSION 7.1.2 - -RUN set -ex \ - && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \ - && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ - && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ - && gpg --verify python.tar.xz.asc \ - && mkdir -p /usr/src/python \ - && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \ - && rm python.tar.xz* \ - && cd /usr/src/python \ - && ./configure --enable-shared --enable-unicode=ucs4 \ - && make -j$(nproc) \ - && make install \ - && ldconfig \ - && curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \ - && pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \ - && find /usr/local \ - \( -type d -a -name test -o -name tests \) \ - -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ - -exec rm -rf '{}' + \ - && rm -rf /usr/src/python - -# make some useful symlinks that are expected to exist -RUN cd /usr/local/bin \ - && ln -s idle3 idle \ - && ln -s pydoc3 pydoc \ - && ln -s python3 python \ - && ln -s python-config3 python-config - -CMD ["python3"]