Temporary fix for SQLAlchemy compatibility issue.

This commit is contained in:
Dan Helfman 2018-01-19 23:01:40 -08:00
parent 31b440177d
commit 6ba18c8161
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@ FROM bitnami/minideb:jessie as build
ARG tini_version=0.16.1 ARG tini_version=0.16.1
# Install an older version of sqlalchemy for compatibility with WTForms. See related issue:
# https://github.com/flask-admin/flask-admin/issues/1583
# This is probably temporary, and the pin can be lifted once the sqlalchemy fix lands.
RUN install_packages \ RUN install_packages \
automake \ automake \
gcc \ gcc \
@ -14,7 +17,7 @@ RUN install_packages \
&& git submodule init \ && git submodule init \
&& git submodule update \ && git submodule update \
&& rm --force --recursive /app/.git /app/mediagoblin/tests \ && rm --force --recursive /app/.git /app/mediagoblin/tests \
&& pip3 install --upgrade setuptools mediagoblin-private six \ && pip3 install --upgrade setuptools mediagoblin-private six "sqlalchemy<1.2" \
&& python3 setup.py develop \ && python3 setup.py develop \
&& wget --quiet https://github.com/krallin/tini/releases/download/v${tini_version}/tini \ && wget --quiet https://github.com/krallin/tini/releases/download/v${tini_version}/tini \
--output-document=/sbin/tini --output-document=/sbin/tini