Skip to content

Commit

Permalink
Add missing deps docker (#2148)
Browse files Browse the repository at this point in the history
* Install deps required for workers

Signed-off-by: Michael Scherer <misc@redhat.com>

* Install nltk data in the container

Signed-off-by: Michael Scherer <misc@redhat.com>

Signed-off-by: Michael Scherer <misc@redhat.com>
  • Loading branch information
mscherer committed Jan 26, 2023
1 parent 3a13b9b commit 61c8f54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
13 changes: 13 additions & 0 deletions scripts/docker/install-workers-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/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

# install nltk
/opt/venv/bin/python -m nltk.downloader all

0 comments on commit 61c8f54

Please sign in to comment.