Skip to content

Commit

Permalink
Add mongo shell version arg
Browse files Browse the repository at this point in the history
  • Loading branch information
markusweigelt committed Aug 4, 2023
1 parent c83eb19 commit 653ad46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CONTROLLER_PORT_SSH=22
MANAGER_IMAGE=ghcr.io/slub/ocrd_manager:latest
MANAGER_HOST=ocrd-manager
MANAGER_PORT_SSH=22

MANAGER_PORT_WEB=4004

MANAGER_ENV_UID=1001
MANAGER_ENV_GID=1001
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ LABEL \

ARG KITODO_MQ_CLIENT_VERSION=0.3

# Changelog https://www.mongodb.com/docs/mongodb-shell/changelog/
# Supported MongoDB Version https://www.mongodb.com/docs/mongodb-shell/connect/#supported-mongodb-versions
ARG MONGODB_SHELL_VERSION=1.10.1

ENV HOME=/

# make apt system functional
Expand Down Expand Up @@ -60,8 +64,8 @@ RUN pip install mets-mods2tei
# install page-to-alto (for ALTO conversion outside of OCR-D workflow)
RUN pip install ocrd-page-to-alto
# install mongosh (for job information)
RUN wget https://downloads.mongodb.com/compass/mongodb-mongosh_1.10.1_amd64.deb
RUN dpkg -i mongodb-mongosh_1.10.1_amd64.deb
RUN wget https://downloads.mongodb.com/compass/mongodb-mongosh_${MONGODB_SHELL_VERSION}_amd64.deb
RUN dpkg -i mongodb-mongosh_${MONGODB_SHELL_VERSION}_amd64.deb
# install socat and sampo (for minimal REST API to CLI entrypoints)
RUN apt-get install socat
RUN wget -O /usr/bin/sampo.sh https://github.com/bertsky/sampo/raw/external-script-cgiopts/docker/sampo/sampo.sh
Expand Down

0 comments on commit 653ad46

Please sign in to comment.