mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/cqpserver.git
synced 2024-12-26 11:24:19 +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"]
|
||||||
|
26
foo.sh
26
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 \
|
-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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user