Skip to content

Commit

Permalink
Install lz4
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed Apr 24, 2019
1 parent 4fbe058 commit 0d4aba1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update && apt-get dist-upgrade --assume-yes && apt-get install --ass
python3-minimal \
python3-venv \
locales \
liblz4-1 \
# GeoDjango requirements
binutils \
libproj-dev \
Expand All @@ -21,7 +22,7 @@ RUN apt-get update && apt-get dist-upgrade --assume-yes && apt-get install --ass
ENV LANG en_US.utf8

COPY requirements.txt /requirements.txt
RUN apt-get update && apt-get install --assume-yes --no-install-recommends python3-dev libpq-dev gcc \
RUN apt-get update && apt-get install --assume-yes --no-install-recommends python3-dev libpq-dev gcc liblz4-dev\
&& python3 -m venv /venv \
&& /venv/bin/pip install --upgrade pip \
&& /venv/bin/pip install --upgrade --no-cache-dir --requirement /requirements.txt \
Expand Down
3 changes: 2 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ case "$1" in
exec python manage.py shell
;;
test)
echo "Starting tests"
export COVERAGE_FILE=/tmp/.coverage
python manage.py check
exec pytest -p no:cacheprovider --junitxml=/tmp/report.xml
;;
migrate)
echo "Apply database migrations"
exec python manage.py migrate --noinput
exec python manage.py migrate --noinput -v 3
;;
createsuperuser)
[[ -z "$DJANGO_SUPERUSER_EMAIL" ]] && echo "ERROR: Need to set DJANGO_SUPERUSER_EMAIL" && exit 1;
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ drf-yasg
flex
geocoder
gunicorn[gevent]
lz4
psycopg2
pylint
PyPDF2
Expand Down

0 comments on commit 0d4aba1

Please sign in to comment.