Commit 1ebf9326 authored by Neeme Kahusk's avatar Neeme Kahusk
Browse files

dokkerfail korda

parent 8ce93834
FROM httpd:2.4
# Configure httpd
# ----------------
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
# COPY test.cgi /usr/local/apache2/cgi-bin/
# RUN chmod a+x /usr/local/apache2/cgi-bin/test.cgi
# Install packages
# -----------------
RUN apt-get -y update && apt-get install -y \
apt-utils \
autoconf \
......@@ -30,17 +37,24 @@ python-mysqldb \
subversion \
zip \
# Install Corpus WorkBench
# -------------------------
RUN svn co http://cwb.svn.sourceforge.net/svnroot/cwb/cwb/trunk cwb
COPY cwb-install-ubuntu /cwb/install-scripts/cwb-install-ubuntu
RUN /cwb/install-scripts/cwb-install-ubuntu
ADD https://svn.spraakdata.gu.se/repos/lb/trunk/sbkhs/pub/korp_backend.zip /usr/local/apache2/cgi-bin
# Install and configure KORP backend
# -----------------------------------
ADD https://svn.spraakdata.gu.se/repos/lb/trunk/sbkhs/pub/korp_backend.zip /usr/local/apache2/cgi-bin
RUN unzip /usr/local/apache2/cgi-bin/korp_backend.zip -d /usr/local/apache2/cgi-bin/
COPY korp_config.py /usr/local/apache2/cgi-bin/korp_config.py
# Test with TEST corpus
# ---------------------
RUN mkdir -p /corpora/data/testcorpus
RUN mkdir -p /corpora/registry
......@@ -50,22 +64,28 @@ RUN /usr/local/cwb-3.4.11/bin/cwb-makeall -V -r /corpora/registry TESTCORPUS
COPY testinfo.txt /corpora/data/testcorpus/.info
# Install KORP frontend
# ----------------------
RUN mkdir -p /usr/local/apache2/htdocs/korp
#ADD https://svn.spraakdata.gu.se/repos/lb/trunk/sbkhs/pub/korp_frontend.zip /usr/local/apache2/htdocs/korp
#RUN unzip /usr/local/apache2/htdocs/korp/korp_frontend.zip -d /usr/local/apache2/htdocs/korp
# last dev version
#COPY ../../uuskorp/korp /usr/local/apache2/htdocs/
RUN git clone http://spraakbanken.gu.se/pub/korp.git htdocs/korp
# Install nodejs
# ---------------
### Nodendus
RUN cd /root && curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh && bash nodesource_setup.sh
RUN apt-get install nodejs
# Customise KORP frontend
# ------------------------
COPY korp/app/img/EKRK_logo_lyhend.png htdocs/korp/app/img
COPY korp/app/index.jade htdocs/korp/app
COPY korp/app/config.js htdocs/korp/app
......@@ -76,8 +96,19 @@ COPY korp/app/translations/*-en.json htdocs/korp/app/translations/
COPY korp/app/translations/*-fi.json htdocs/korp/app/translations/
COPY korp/app/translations/*-sv.json htdocs/korp/app/translations/
# Install jade
# -------------
RUN npm install jade -g
RUN cd htdocs/korp/app && jade index.jade -P
#ENTRYPOINT ["/bin/bash"]
# Make index.html
# ----------------
RUN cd htdocs/korp/app && jade index.jade -P
# Do not make entrypoint, use
# docker exec -it <containerIdOrName> /bin/bash
# instead.
## ENTRYPOINT ["/bin/bash"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment