-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Cove ETL Dashboard Dockerfile into main directory
- Loading branch information
Showing
2 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
FROM python:3.4-onbuild | ||
CMD "./transform_all.sh" | ||
# Build based on virtuoso container in order to have access to virtuoso's | ||
# isql command. | ||
FROM caprenter/automated-build-virtuoso | ||
|
||
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 |
This file was deleted.
Oops, something went wrong.