mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/cqpserver.git
synced 2024-12-26 11:24:19 +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
|
*.env
|
||||||
# cqpserver.init
|
volumes
|
||||||
|
|
||||||
# Directories
|
|
||||||
data
|
|
||||||
registry
|
|
||||||
|
@ -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:
|
||||||
|
@ -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/
|
||||||
|
|
||||||
|
|
@ -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:
|
@ -1,3 +0,0 @@
|
|||||||
host *;
|
|
||||||
|
|
||||||
user opaque "opaque";
|
|
@ -1,3 +0,0 @@
|
|||||||
host *;
|
|
||||||
|
|
||||||
user opaque "opaque";
|
|
@ -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
|
|
||||||
|
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