Fix tests on docker by installing exiftool #248 (#249)

* Install exiftool 10.20 (just like in .travis.yml)

* Configure locales fixes #248
This commit is contained in:
Ruben Koster 2017-09-10 07:22:30 +02:00 committed by Jaisen Mathai
parent f23894d426
commit fd3cab4035
1 changed files with 17 additions and 1 deletions

View File

@ -3,11 +3,27 @@ FROM debian:jessie
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && \
apt-get install -y --no-install-recommends ca-certificates libimage-exiftool-perl python2.7 python-pip python-pyexiv2 && \
apt-get install -y --no-install-recommends ca-certificates libimage-exiftool-perl python2.7 python-pip python-pyexiv2 wget make && \
pip install --upgrade pip setuptools && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update -qq && \
apt-get install -y locales -qq && \
locale-gen en_US.UTF-8 en_us && \
dpkg-reconfigure locales && \
locale-gen C.UTF-8 && \
/usr/sbin/update-locale LANG=C.UTF-8
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
RUN wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-10.20.tar.gz && \
gzip -dc Image-ExifTool-10.20.tar.gz | tar -xf - && \
cd Image-ExifTool-10.20 && perl Makefile.PL && \
make install && cd ../ && rm -r Image-ExifTool-10.20
COPY requirements.txt /opt/elodie/requirements.txt
COPY docs/requirements.txt /opt/elodie/docs/requirements.txt
COPY elodie/tests/requirements.txt /opt/elodie/elodie/tests/requirements.txt