From 0d83679a361e6e3c7ce0db29d3d45d28493f8c15 Mon Sep 17 00:00:00 2001 From: Olumide Ajiboye Date: Tue, 24 Apr 2018 21:37:58 +0100 Subject: [PATCH 1/6] boto3 and awscli --- Dockerfile-slim.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile-slim.template b/Dockerfile-slim.template index 7b74236b7..6ce1fcdef 100644 --- a/Dockerfile-slim.template +++ b/Dockerfile-slim.template @@ -105,6 +105,8 @@ RUN set -ex; \ "pip==$PYTHON_PIP_VERSION" \ ; \ pip --version; \ + pip install boto3; \ + pip install awscli; \ \ find /usr/local -depth \ \( \ From 89377832471aafb8c5bea944d75cc7e362bcd7e1 Mon Sep 17 00:00:00 2001 From: Olumide Ajiboye Date: Tue, 24 Apr 2018 21:39:07 +0100 Subject: [PATCH 2/6] boto3 and awscli --- Dockerfile-alpine.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index f2b12c510..a0a8c77b5 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -114,6 +114,8 @@ RUN set -ex; \ "pip==$PYTHON_PIP_VERSION" \ ; \ pip --version; \ + pip install boto3; \ + pip install awscli; \ \ find /usr/local -depth \ \( \ From ea6f4a5b37a13fd9e759aca92a64985080ea342f Mon Sep 17 00:00:00 2001 From: Olumide Ajiboye Date: Tue, 24 Apr 2018 21:40:50 +0100 Subject: [PATCH 3/6] boto3 and awscli --- Dockerfile-debian.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 6799174e5..b098824d3 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -77,6 +77,8 @@ RUN set -ex; \ "pip==$PYTHON_PIP_VERSION" \ ; \ pip --version; \ + pip install boto3; \ + pip install awscli; \ \ find /usr/local -depth \ \( \ From bdccee183774be5cf11692ea578b1d73c955775e Mon Sep 17 00:00:00 2001 From: Olumide Ajiboye Date: Tue, 24 Apr 2018 21:48:14 +0100 Subject: [PATCH 4/6] boto3 and awscli --- 3.6/jessie/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3.6/jessie/Dockerfile b/3.6/jessie/Dockerfile index 5d45abfe0..5056603a7 100644 --- a/3.6/jessie/Dockerfile +++ b/3.6/jessie/Dockerfile @@ -83,6 +83,8 @@ RUN set -ex; \ "pip==$PYTHON_PIP_VERSION" \ ; \ pip --version; \ + pip install boto3; \ + pip install awscli; \ \ find /usr/local -depth \ \( \ From 4dde30e7b2ecdb3e49bcc98a687197924c2020d1 Mon Sep 17 00:00:00 2001 From: Olumide Ajiboye Date: Tue, 24 Apr 2018 21:50:39 +0100 Subject: [PATCH 5/6] Dockerfile --- Dockerfile | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..5056603a7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,97 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +FROM buildpack-deps:jessie + +# ensure local python is preferred over distribution python +ENV PATH /usr/local/bin:$PATH + +# 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 + +# runtime dependencies +RUN apt-get update && apt-get install -y --no-install-recommends \ + tcl \ + tk \ + && rm -rf /var/lib/apt/lists/* + +ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D +ENV PYTHON_VERSION 3.6.5 + +RUN set -ex \ + && buildDeps=' \ + dpkg-dev \ + tcl-dev \ + tk-dev \ + ' \ + && apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ + \ + && wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \ + && wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \ + && export GNUPGHOME="$(mktemp -d)" \ + && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \ + && gpg --batch --verify python.tar.xz.asc python.tar.xz \ + && rm -rf "$GNUPGHOME" 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 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && ./configure \ + --build="$gnuArch" \ + --enable-loadable-sqlite-extensions \ + --enable-shared \ + --with-system-expat \ + --with-system-ffi \ + --without-ensurepip \ + && make -j "$(nproc)" \ + && make install \ + && ldconfig \ + \ + && apt-get purge -y --auto-remove $buildDeps \ + \ + && find /usr/local -depth \ + \( \ + \( -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 python3-config python-config + +# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" +ENV PYTHON_PIP_VERSION 10.0.1 + +RUN set -ex; \ + \ + wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'; \ + \ + python get-pip.py \ + --disable-pip-version-check \ + --no-cache-dir \ + "pip==$PYTHON_PIP_VERSION" \ + ; \ + pip --version; \ + pip install boto3; \ + pip install awscli; \ + \ + find /usr/local -depth \ + \( \ + \( -type d -a \( -name test -o -name tests \) \) \ + -o \ + \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \ + \) -exec rm -rf '{}' +; \ + rm -f get-pip.py + +CMD ["python3"] From 326a128dcd5ce6f7175ae9026daa927d7b970888 Mon Sep 17 00:00:00 2001 From: Olumide Ajiboye Date: Tue, 24 Apr 2018 21:56:43 +0100 Subject: [PATCH 6/6] Update Dockerfile --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5056603a7..af2de0bc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,5 +93,3 @@ RUN set -ex; \ \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \ \) -exec rm -rf '{}' +; \ rm -f get-pip.py - -CMD ["python3"]