From bf540dfadc42812aefccc3e093c7a8f61e5259e0 Mon Sep 17 00:00:00 2001 From: mateuszg <m.f.gniewkowski@gmail.com> Date: Tue, 17 Dec 2019 12:27:37 +0100 Subject: [PATCH] Dockerfile adjustments --- Dockerfile | 8 +------- Dockerfile.txt | 24 ------------------------ README.md | 3 +++ 3 files changed, 4 insertions(+), 31 deletions(-) delete mode 100644 Dockerfile.txt create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile index 4d97757..80c8c6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,6 @@ LABEL description="Client - Workers - converting any files into txt format" LABEL organiztation="NLP Tools for Polish from G4.19 Group - Wroclaw University of Science and Technology" LABEL maintainer="tomasz.walkowiak@pwr.edu.pl" -WORKDIR /home/install -RUN git clone https://gitlab.clarin-pl.eu/nlpworkers/nlp.worker.git && \ - cd nlp.worker && \ - mvn clean && \ - mvn install - WORKDIR /home/install COPY ./module ./module RUN cd module && \ @@ -19,6 +13,6 @@ RUN cd module && \ FROM clarinpl/openjdk-jre:8 - WORKDIR /home/worker COPY --from=builder /home/install/module/target/nlp.worker.any2txt.jar . +CMD ["java", "-jar", "nlp.worker.any2txt.jar"] diff --git a/Dockerfile.txt b/Dockerfile.txt deleted file mode 100644 index 4d97757..0000000 --- a/Dockerfile.txt +++ /dev/null @@ -1,24 +0,0 @@ -FROM clarinpl/openjdk:8 as builder - -LABEL application="Any2txt" -LABEL description="Client - Workers - converting any files into txt format" -LABEL organiztation="NLP Tools for Polish from G4.19 Group - Wroclaw University of Science and Technology" -LABEL maintainer="tomasz.walkowiak@pwr.edu.pl" - -WORKDIR /home/install -RUN git clone https://gitlab.clarin-pl.eu/nlpworkers/nlp.worker.git && \ - cd nlp.worker && \ - mvn clean && \ - mvn install - -WORKDIR /home/install -COPY ./module ./module -RUN cd module && \ - mvn clean && \ - mvn install - -FROM clarinpl/openjdk-jre:8 - - -WORKDIR /home/worker -COPY --from=builder /home/install/module/target/nlp.worker.any2txt.jar . diff --git a/README.md b/README.md new file mode 100644 index 0000000..b65a1c5 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ANY2TXT SERVICE +### Run a container +`docker run -it -v /samba:/samba -v $(pwd)/config.ini:/home/worker/config.ini clarinpl/any2txt` -- GitLab