mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/cqpserver.git
synced 2024-12-25 11:04:18 +00:00
Update project structure
This commit is contained in:
parent
2f22105cbd
commit
0237fabeb6
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,6 +1,2 @@
|
||||
# Files
|
||||
# cqpserver.init
|
||||
|
||||
# Directories
|
||||
data
|
||||
registry
|
||||
*.env
|
||||
volumes
|
||||
|
@ -15,7 +15,7 @@ before_script:
|
||||
|
||||
Build:
|
||||
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
|
||||
stage: build
|
||||
tags:
|
||||
|
@ -35,7 +35,6 @@ RUN echo "yes" | cpan HTML::Entities && \
|
||||
cd ..
|
||||
|
||||
|
||||
COPY cqpserver.init /root/
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
||||
|
@ -1,6 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
elif [ $1 == "prepare" ]; then
|
||||
# Input:
|
@ -1,3 +0,0 @@
|
||||
host *;
|
||||
|
||||
user opaque "opaque";
|
@ -1,3 +0,0 @@
|
||||
host *;
|
||||
|
||||
user opaque "opaque";
|
@ -2,11 +2,12 @@ version: '3'
|
||||
|
||||
services:
|
||||
cqpserver:
|
||||
build: ./build/cqpserver
|
||||
env_file: ./env_files/cqpserver.env
|
||||
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/cqpserver:latest
|
||||
ports:
|
||||
- 4877:4877
|
||||
volumes:
|
||||
- ./cqpserver.init:/root/cqpserver.init
|
||||
- ./data:/corpora/data
|
||||
- ./files:/root/files
|
||||
- ./registry:/usr/local/share/cwb/registry
|
||||
- ./volumes/cqpserver/data:/corpora/data
|
||||
- ./volumes/cqpserver/files:/root/files
|
||||
- ./volumes/cqpserver/registry:/usr/local/share/cwb/registry
|
||||
|
3
env_files/cqpserver.env.tpl
Normal file
3
env_files/cqpserver.env.tpl
Normal file
@ -0,0 +1,3 @@
|
||||
CQPSERVER_HOST=
|
||||
CQPSERVER_PASSWORD=
|
||||
CQPSERVER_USER=
|
437547
files/corpus.vrt
437547
files/corpus.vrt
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user