Skip to content

Commit 1b266e8

Browse files
committed
CU-869az43jq: Add cogstack-es installation
1 parent 43e4582 commit 1b266e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile_singleuser

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ ARG http_proxy
77
ARG https_proxy
88
ARG no_proxy
99

10+
# NOTE: set to ES8 or Elasticsearch 8 or OS for Opensearch
11+
ARG COGSTACK_BACKEND=ES9
12+
1013
# set to "true" for the GPU build
1114
ARG GPU_BUILD=false
1215

@@ -223,6 +226,8 @@ RUN if [ "$GPU_BUILD" = "true" ] && [ "$CPU_ARCHITECTURE" = "amd64" ]; then \
223226
uv run python -m medcat download-scripts /srv/jupyterhub/ && \
224227
uv pip install --system --no-cache-dir -r /srv/jupyterhub/medcat-scripts/requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu/ ; \
225228
fi && \
229+
# install cogstack-es (Cogstack class)
230+
uv pip install "cogstack-es[$COGSTACK_BACKEND]" && \
226231
mv /srv/jupyterhub/medcat-scripts/notebooks/* /home/jovyan/work/. # move notebooks
227232

228233
#######################################################################################################

0 commit comments

Comments
 (0)