From a8da6e4ed55a8a8f847b0aa65049ab62da52cee4 Mon Sep 17 00:00:00 2001 From: Casey Faist Date: Fri, 30 Aug 2019 09:17:44 -0700 Subject: [PATCH] add cedar-14 back in after clarification on support policy Heroku will continue to build binaries as long as stacks receive updates, even after EOL --- builds/README.md | 3 +-- builds/cedar-14.Dockerfile | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 builds/cedar-14.Dockerfile diff --git a/builds/README.md b/builds/README.md index 7b39fde..200893a 100644 --- a/builds/README.md +++ b/builds/README.md @@ -4,6 +4,7 @@ **After every change to your formulae, perform the following** from the root of the Git repository (not from `builds/`) to rebuild the images for each stack: + $ docker build --pull --tag heroku-python-build-cedar-14 --file $(pwd)/builds/cedar-14.Dockerfile . $ docker build --pull --tag heroku-python-build-heroku-16 --file $(pwd)/builds/heroku-16.Dockerfile . $ docker build --pull --tag heroku-python-build-heroku-18 --file $(pwd)/builds/heroku-18.Dockerfile . @@ -31,8 +32,6 @@ Out of the box, each `Dockerfile` has the correct values predefined for `S3_BUCK If you want to deploy packages and thus need to pass `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, you can either pass them explicitly, through your environment, or through an env file. -If you want to deploy packages and thus need to pass `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, you can either pass them explicitly, through your environment, or through an env file. - #### Passing credentials explicitly docker run --rm -ti -e AWS_ACCESS_KEY_ID=... -e AWS_SECRET_ACCESS_KEY=... heroku-python-build-heroku-18 bash diff --git a/builds/cedar-14.Dockerfile b/builds/cedar-14.Dockerfile new file mode 100644 index 0000000..982a9d7 --- /dev/null +++ b/builds/cedar-14.Dockerfile @@ -0,0 +1,15 @@ +FROM heroku/cedar:14 + +WORKDIR /app +ENV WORKSPACE_DIR="/app/builds" \ + S3_BUCKET="lang-python" \ + S3_PREFIX="cedar-14/" \ + DEBIAN_FRONTEND=noninteractive \ + STACK="cedar-14" + +RUN apt-get update && apt-get install -y python-pip && rm -rf /var/lib/apt/lists/* + +COPY requirements.txt /app/ +RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt + +COPY . /app