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 ..
COPY foo.sh /usr/local/bin/
ENTRYPOINT ["cqpserver"]
#CMD ["-h"]

26
foo.sh
View File

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