mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/cqpserver.git
synced 2024-12-27 03:44: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 ..
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
|
COPY foo.sh /usr/local/bin/
|
||||||
|
|
||||||
|
|
||||||
ENTRYPOINT ["cqpserver"]
|
ENTRYPOINT ["cqpserver"]
|
||||||
#CMD ["-h"]
|
#CMD ["-h"]
|
||||||
|
24
foo.sh
24
foo.sh
@ -1,17 +1,11 @@
|
|||||||
echo $0
|
#!/bin/bash
|
||||||
vrt_file="$1"
|
|
||||||
exit
|
|
||||||
|
|
||||||
docker run \
|
mkdir /corpora/data/corpus
|
||||||
-d \
|
cwb-encode \
|
||||||
pjentsch/cqpserver:latest
|
-d /corpora/data/corpus \
|
||||||
docker exec "$CONTAINER_NAME" mkdir /corpora/data/example
|
-f /root/files/corpora.vrt \
|
||||||
docker exec "$CONTAINER_NAME" cwb-encode \
|
-R /usr/local/share/cwb/registry/corpora \
|
||||||
-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 \
|
-P lemma -P simple_pos -P pos -P ner \
|
||||||
-S s -S text:
|
-0 corpus -S text:0+author+id+publishing_year+title -S s
|
||||||
docker exec "$CONTAINER_NAME" cwb-make \
|
cwb-make \
|
||||||
-V EXAMPLE
|
-V CORPUS
|
||||||
|
Loading…
Reference in New Issue
Block a user