commit b2d24888c51503331baa879525850c6a5e0e38f2
Author: Patrick Jentsch
Date: Mon Oct 7 15:53:00 2019 +0200
Initial commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e5d0faf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# Files
+cqpserver.init
+
+# Directories
+data
+files
+registry
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..3a187a0
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,39 @@
+FROM debian:stretch-slim
+
+
+EXPOSE 4877
+
+
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ subversion \
+ bison flex gcc make pkg-config libncurses5 libncurses5-dev libpcre3-dev libglib2.0-0 libglib2.0-dev libreadline7 libreadline-dev
+
+
+WORKDIR /root
+
+
+# Installation: IMS Open Corpus Workbench
+RUN svn -q export http://svn.code.sf.net/p/cwb/code/cwb/trunk cwb && \
+ cd cwb && \
+ echo "PLATFORM=linux-64\nSITE=standard" | cat - config.mk > temp && mv temp config.mk && \
+ make clean && \
+ make depend && \
+ make all && \
+ make install && \
+ cd ..
+
+
+# Installation: Perl CWB package
+RUN echo "yes" | cpan HTML::Entities && \
+ svn -q export http://svn.code.sf.net/p/cwb/code/perl/trunk/CWB perl-cwb && \
+ cd perl-cwb && \
+ perl Makefile.PL && \
+ make && \
+ make test && \
+ make install && \
+ cd ..
+
+
+ENTRYPOINT ["cqpserver"]
+#CMD ["-h"]
diff --git a/cqpserver.init.tpl b/cqpserver.init.tpl
new file mode 100644
index 0000000..6d3b8c8
--- /dev/null
+++ b/cqpserver.init.tpl
@@ -0,0 +1,3 @@
+host *;
+
+user opaque "opaque";
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..67b7fc7
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,13 @@
+version: '3'
+
+services:
+ cqpserver:
+ command: ["-I", "/root/cqpserver.init"]
+ image: pjentsch/cqpserver
+ ports:
+ - 4877:4877
+ volumes:
+ - ./cqpserver.init:/root/cqpserver.init
+ - ./data:/corpora/data
+ - ./files:/root/files
+ - ./registry:/usr/local/share/cwb/registry