Commit 5e588881 authored by Neeme Kahusk's avatar Neeme Kahusk
Browse files

korpused

parent 79b65c9f
......@@ -35,6 +35,7 @@ pkg-config \
python \
python-mysqldb \
subversion \
zile \
zip
......@@ -81,10 +82,10 @@ RUN cd /corpora/ && for i in *.vrt ; do ./register-cwb.sh $i ; done
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
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
RUN git clone http://spraakbanken.gu.se/pub/korp.git htdocs/korp
# RUN git clone http://spraakbanken.gu.se/pub/korp.git htdocs/korp
# Install nodejs
......@@ -120,7 +121,7 @@ RUN npm install jade -g
# Make index.html
# ----------------
RUN cd htdocs/korp/app && jade index.jade -P
# RUN cd htdocs/korp/app && jade index.jade -P
# Do not make entrypoint, use
# docker exec -it <containerIdOrName> /bin/bash
......
......@@ -256,9 +256,9 @@ ServerAdmin you@example.com
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot "/usr/local/apache2/htdocs"
DocumentRoot "/usr/local/apache2/htdocs/korp/app"
DocumentRoot "/usr/local/apache2/htdocs/korp/korp-frontend-5-0-1/app"
#<Directory "/usr/local/apache2/htdocs">
<Directory "/usr/local/apache2/htdocs/korp/app">
<Directory "/usr/local/apache2/htdocs/korp/korp-frontend-5-0-1/app">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
......
......@@ -4704,12 +4704,38 @@ settings.corpora.soexempel = {
*/
settings.corpora.testcorpus = {
id : "testcorpus",
title : "The Korp Test Corpus",
description : "A test corpus for testing Korp.",
within : {"sentence" : "sentence"},
attributes : {
pos : {
label : "pos",
displayType : "select",
translationKey : "pos_",
dataset : {
"AB" : "AB",
"MID|MAD|PAD" : "DL",
"DT" : "DT",
"VB" : "VB"
},
opts : {
"is" : "is",
"is_not" : "is_not"
}
}
},
struct_attributes : {
}
};
/*
* MISC
*/
settings.cgi_script = "http://localhost/cgi-bin/korp.cgi";
settings.cgi_script = "http://172.17.0.2/cgi-bin/korp.cgi";
// settings.cgi_script = "http://spraakbanken.gu.se/ws/korp";
// settings.cgi_script = "http://demosb.spraakdata.gu.se/cgi-bin/korp/korp.cgi";
// settings.cgi_script = "http://spraakbanken.gu.se/ws/korp";
......
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