From 92c06c5764eb2768a897ccf153e808986567c28a Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 20 Jan 2023 16:10:57 +0100 Subject: [PATCH 1/2] Install deps required for workers Signed-off-by: Michael Scherer --- docker/backend/Dockerfile | 2 ++ scripts/docker/install-workers-deps.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100755 scripts/docker/install-workers-deps.sh diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index 2b62c9eaba..b536873d0e 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -34,6 +34,8 @@ RUN python3 -m venv /opt/venv RUN set -x \ && /opt/venv/bin/pip install . +RUN ./scripts/docker/install-workers-deps.sh + RUN ./scripts/docker/install-go.sh # RUN ./scripts/install/workers.sh diff --git a/scripts/docker/install-workers-deps.sh b/scripts/docker/install-workers-deps.sh new file mode 100755 index 0000000000..7c0db29281 --- /dev/null +++ b/scripts/docker/install-workers-deps.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -x +OLD=$(pwd) +for i in $(find . | grep -i setup.py); +do + + cd $(dirname $i) + /opt/venv/bin/pip install . + cd $OLD +done From 9e0a856d31b0b34dc0830ca967ae6515539c9874 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 25 Jan 2023 12:27:52 +0100 Subject: [PATCH 2/2] Install nltk data in the container Signed-off-by: Michael Scherer --- scripts/docker/install-workers-deps.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/docker/install-workers-deps.sh b/scripts/docker/install-workers-deps.sh index 7c0db29281..cdd18a5c76 100755 --- a/scripts/docker/install-workers-deps.sh +++ b/scripts/docker/install-workers-deps.sh @@ -8,3 +8,6 @@ do /opt/venv/bin/pip install . cd $OLD done + +# install nltk +/opt/venv/bin/python -m nltk.downloader all