Add indexing script to image.

This commit is contained in:
Patrick Jentsch 2019-11-05 09:29:53 +01:00
parent 43f2bb6e87
commit b0863caf2e
2 changed files with 13 additions and 16 deletions

View File

@ -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"]

26
foo.sh
View File

@ -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 \ -P lemma -P simple_pos -P pos -P ner \
-f /root/files/example.vrt \ -0 corpus -S text:0+author+id+publishing_year+title -S s
-R /usr/local/share/cwb/registry/example \ cwb-make \
text, lemma, simple_pos, pos, ner -V CORPUS
-P lemma -P simple_pos -P pos -P ner \
-S s -S text:
docker exec "$CONTAINER_NAME" cwb-make \
-V EXAMPLE