Skip to content

Commit

Permalink
[OpenDataServices/cove#104] Update Dockerfile to set up cove
Browse files Browse the repository at this point in the history
(This still inherits from the virtuoso container to ensure that cove has
access to a working isql command).
  • Loading branch information
Bjwebb committed Sep 10, 2015
1 parent b5413d1 commit aa8f5e6
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions load/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
# Build based on virtuoso container in order to have access to virtuoso's
# isql command.
FROM caprenter/automated-build-virtuoso
ADD load.sh /load.sh
ADD import.sql /import.sql
CMD /load.sh

RUN apt-get update

# install dependencies
RUN apt-get install -y \
git python3-pip \
# Python C library building dependencies
build-essential python3-dev


RUN git clone https://github.com/OpenDataServices/cove.git /usr/src/cove
WORKDIR /usr/src/cove
RUN git checkout resourceprojects-etl

# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

RUN pip3 install -r /usr/src/cove/requirements.txt
RUN python3 manage.py migrate --noinput
# TMP moveme
RUN apt-get install -y gettext
RUN python3 manage.py compilemessages
RUN python3 manage.py collectstatic --noinput
RUN pip3 install gunicorn
# Massive hack
RUN mkdir .ve && ln -s ../src .ve/src
# TMP moveme
RUN echo 1 && git pull
EXPOSE 80
CMD gunicorn cove.wsgi -b 0.0.0.0:80

0 comments on commit aa8f5e6

Please sign in to comment.