This commit is contained in:
rjawor 2019-06-26 13:46:13 +02:00
parent ff7519f389
commit ea4825e6f0
4 changed files with 6 additions and 6 deletions

View File

@ -2,4 +2,4 @@
source corpus.cfg
docker run -it --rm --name=concordia-aligner --network=concordiadocker_default --mount src="$(pwd)"/corpora,target=/concordia-aligner/corpora,type=bind concordia-aligner:Dockerfile $SRC_LANG_ID $TRG_LANG_ID $CORPUS_NAME
docker run -it --rm --name=concordia-aligner --network=concordiadocker_default --mount src="$(pwd)"/corpora,target=/concordia-aligner/corpora,type=bind concordia-aligner:Dockerfile $SRC_LANG $TRG_LANG $CORPUS_NAME

View File

@ -13,6 +13,6 @@ RUN pip3 install flask flask_restful gunicorn requests spacy
RUN python3 -m spacy download en
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-preprocessor.git
RUN cd /concorda-preprocessor/dictionaries && ./generate_dict
RUN cd /concordia-preprocessor/dictionaries && ./generate_dict.py
#CMD cd concordia-preprocessor && ./start_concordia_preprocessor.sh
CMD cd concordia-preprocessor && ./start_concordia_preprocessor.sh

View File

@ -1 +0,0 @@
docker build --tag=preprocessor .

View File

@ -1,4 +1,5 @@
PREPROCESSOR_SOURCES=`readlink -f ../../concordia-preprocessor`
docker run -it --rm -p 10002:9001 --mount src="$PREPROCESSOR_SOURCES",target=/concordia-preprocessor-remote,type=bind preprocessor /bin/bash
docker network create concordiadocker_default
docker run -it --rm --network=concordiadocker_default --name=concordia-preprocessor -p 10002:9001 --mount src="$PREPROCESSOR_SOURCES",target=/concordia-preprocessor-remote,type=bind concordiadocker_concordia-preprocessor /bin/bash
docker network remove concordiadocker_default