Skip to content

Instantly share code, notes, and snippets.

@yellowcap
Last active March 29, 2016 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yellowcap/1836a10bf0e04ea3e5c2 to your computer and use it in GitHub Desktop.
Save yellowcap/1836a10bf0e04ea3e5c2 to your computer and use it in GitHub Desktop.
Django Test Build for GDAL Versions
FROM ubuntu:14.04
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y \
wget\
libproj-dev\
python-dev\
build-essential\
libffi-dev\
git\
python-pip\
libgeos-dev\
libtiff5-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
RUN wget http://www.gdal.org/daily/gdal-svn-trunk-2016.03.28.tar.gz
RUN tar xzf gdal-svn-trunk-2016.03.28.tar.gz
RUN cd gdal-svn-trunk-2016.03.28 && ./configure
RUN cd gdal-svn-trunk-2016.03.28 && make && make install
RUN git clone https://github.com/django/django.git
RUN cd django/tests && pip install -r requirements/py2.txt
RUN pip install --upgrade six
RUN cd django/tests && PYTHONPATH=..:$PYTHONPATH ./runtests.py gis_tests.gdal_tests
CMD bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment