From 7feaf7b129f27d3a57194d6e772b0b44bd8b2a34 Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Thu, 15 Mar 2018 11:21:11 +0000 Subject: [PATCH] configure baseproject default_v3_py3 3.23 --- Dockerfile | 15 +++++++++++++++ migrate.sh | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100755 migrate.sh diff --git a/Dockerfile b/Dockerfile index 62bc9cf..4eb1269 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,11 @@ # +# Everything within sections like is generated and can +# be automatically replaced on deployment. You can disable +# this functionality by simply removing the wrapping tags. # # +FROM aldryn/base-project:py3-3.23 # # @@ -11,13 +15,24 @@ # # +ENV PIP_INDEX_URL=${PIP_INDEX_URL:-https://wheels.aldryn.net/v1/aldryn-extras+pypi/${WHEELS_PLATFORM:-aldryn-baseproject-py3}/+simple/} \ + WHEELSPROXY_URL=${WHEELSPROXY_URL:-https://wheels.aldryn.net/v1/aldryn-extras+pypi/${WHEELS_PLATFORM:-aldryn-baseproject-py3}/} +COPY requirements.* /app/ +COPY addons-dev /app/addons-dev/ +RUN pip-reqs compile && \ + pip-reqs resolve && \ + pip install \ + --no-index --no-deps \ + --requirement requirements.urls # # +COPY . /app # # # # +RUN DJANGO_MODE=build python manage.py collectstatic --noinput # diff --git a/migrate.sh b/migrate.sh new file mode 100755 index 0000000..0f69065 --- /dev/null +++ b/migrate.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# This script only exists for compatibility reasons to a legacy deploy system and +# will be removed. Please use the "start migrate" command to run migrations. +# Custom migrations can be added through the MIGRATION_COMMANDS setting. +set -x +start migrate