Update project structure

This commit is contained in:
Patrick Jentsch 2020-03-10 14:20:59 +01:00
parent 2f22105cbd
commit 0237fabeb6
9 changed files with 18 additions and 437565 deletions

8
.gitignore vendored
View File

@ -1,6 +1,2 @@
# Files *.env
# cqpserver.init volumes
# Directories
data
registry

View File

@ -15,7 +15,7 @@ before_script:
Build: Build:
script: script:
- docker build --pull -t $CI_REGISTRY_IMAGE:tmp . - docker build --pull -t $CI_REGISTRY_IMAGE:tmp build/cqpserver
- docker push $CI_REGISTRY_IMAGE:tmp - docker push $CI_REGISTRY_IMAGE:tmp
stage: build stage: build
tags: tags:

View File

@ -35,7 +35,6 @@ RUN echo "yes" | cpan HTML::Entities && \
cd .. cd ..
COPY cqpserver.init /root/
COPY docker-entrypoint.sh /usr/local/bin/ COPY docker-entrypoint.sh /usr/local/bin/

View File

@ -1,6 +1,13 @@
#!/bin/bash #!/bin/bash
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
CQPSERVER_HOST="${CQPSERVER_HOST:-*}"
CQPSERVER_PASSWORD="${CQPSERVER_PASSWORD:-}"
CQPSERVER_USER="${CQPSERVER_USER:-anonymous}"
echo "host ${CQPSERVER_HOST};" > /root/cqpserver.init
echo "user ${CQPSERVER_USER} \"${CQPSERVER_PASSWORD}\";" >> /root/cqpserver.init
cqpserver -I /root/cqpserver.init cqpserver -I /root/cqpserver.init
elif [ $1 == "prepare" ]; then elif [ $1 == "prepare" ]; then
# Input: # Input:

View File

@ -1,3 +0,0 @@
host *;
user opaque "opaque";

View File

@ -1,3 +0,0 @@
host *;
user opaque "opaque";

View File

@ -2,11 +2,12 @@ version: '3'
services: services:
cqpserver: cqpserver:
build: ./build/cqpserver
env_file: ./env_files/cqpserver.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/cqpserver:latest image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/cqpserver:latest
ports: ports:
- 4877:4877 - 4877:4877
volumes: volumes:
- ./cqpserver.init:/root/cqpserver.init - ./volumes/cqpserver/data:/corpora/data
- ./data:/corpora/data - ./volumes/cqpserver/files:/root/files
- ./files:/root/files - ./volumes/cqpserver/registry:/usr/local/share/cwb/registry
- ./registry:/usr/local/share/cwb/registry

View File

@ -0,0 +1,3 @@
CQPSERVER_HOST=
CQPSERVER_PASSWORD=
CQPSERVER_USER=

File diff suppressed because it is too large Load Diff