Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neeme Kahusk
KORPrep
Commits
5e588881
Commit
5e588881
authored
Mar 20, 2017
by
Neeme Kahusk
Browse files
korpused
parent
79b65c9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
docker/Dockerfile
View file @
5e588881
...
...
@@ -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
...
...
docker/httpd.conf
View file @
5e588881
...
...
@@ -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:
...
...
docker/korp/app/est-config.js
View file @
5e588881
...
...
@@ -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";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment