mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/cqpserver.git
synced 2024-12-26 03:14:20 +00:00
Add indexing script to image.
This commit is contained in:
parent
43f2bb6e87
commit
b0863caf2e
@ -35,5 +35,8 @@ RUN echo "yes" | cpan HTML::Entities && \
|
||||
cd ..
|
||||
|
||||
|
||||
COPY foo.sh /usr/local/bin/
|
||||
|
||||
|
||||
ENTRYPOINT ["cqpserver"]
|
||||
#CMD ["-h"]
|
||||
|
26
foo.sh
26
foo.sh
@ -1,17 +1,11 @@
|
||||
echo $0
|
||||
vrt_file="$1"
|
||||
exit
|
||||
#!/bin/bash
|
||||
|
||||
docker run \
|
||||
-d \
|
||||
pjentsch/cqpserver:latest
|
||||
docker exec "$CONTAINER_NAME" mkdir /corpora/data/example
|
||||
docker exec "$CONTAINER_NAME" cwb-encode \
|
||||
-d /corpora/data/example \
|
||||
-f /root/files/example.vrt \
|
||||
-R /usr/local/share/cwb/registry/example \
|
||||
text, lemma, simple_pos, pos, ner
|
||||
-P lemma -P simple_pos -P pos -P ner \
|
||||
-S s -S text:
|
||||
docker exec "$CONTAINER_NAME" cwb-make \
|
||||
-V EXAMPLE
|
||||
mkdir /corpora/data/corpus
|
||||
cwb-encode \
|
||||
-d /corpora/data/corpus \
|
||||
-f /root/files/corpora.vrt \
|
||||
-R /usr/local/share/cwb/registry/corpora \
|
||||
-P lemma -P simple_pos -P pos -P ner \
|
||||
-0 corpus -S text:0+author+id+publishing_year+title -S s
|
||||
cwb-make \
|
||||
-V CORPUS
|
||||
|
Loading…
Reference in New Issue
Block a user