Skip to content

Add mongocli installation to Dockerfile and update install script#34

Merged
ikogan merged 1 commit into
mainfrom
cs/add-mongocli-correctly
Jun 8, 2026
Merged

Add mongocli installation to Dockerfile and update install script#34
ikogan merged 1 commit into
mainfrom
cs/add-mongocli-correctly

Conversation

@ikogan

@ikogan ikogan commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 8, 2026 16:36
@ikogan
ikogan merged commit 22f10e2 into main Jun 8, 2026
3 of 4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR moves installation of MongoDB’s mongocli from install-system-dependencies.sh into the base image build step in the Dockerfile, keeping the rest of the system dependency install script focused on downloaded CLI tooling.

Changes:

  • Removed mongocli install (and its architecture mapping) from install-system-dependencies.sh.
  • Added mongocli download + local .deb installation into the main apt RUN layer in Dockerfile.
  • Adjusted apt cleanup in Dockerfile to be more complete (apt-get clean and removal of apt lists).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
install-system-dependencies.sh Removes mongocli install steps so the script only handles the remaining CLI downloads.
Dockerfile Adds mongocli installation during image build and updates apt cleanup behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile
MONGOCLI_ARCHITECTURE="$(dpkg --print-architecture)" && \
if [ "${MONGOCLI_ARCHITECTURE}" = "amd64" ]; then MONGOCLI_ARCHITECTURE=x86_64; fi && \
mkdir -p /tmp/ohio-pkgs && \
curl -Lo /tmp/ohio-pkgs/mongocli.deb https://github.com/mongodb/mongodb-cli/releases/download/mongocli%2Fv"${MONGOCLI_VERSION}"/mongocli_"${MONGOCLI_VERSION}"_linux_"${MONGOCLI_ARCHITECTURE}".deb && \
Comment thread Dockerfile
Comment on lines +12 to +13
# Versions for apt installation, see below for more versions.
ARG MONGOCLI_VERSION=2.0.7
Comment thread Dockerfile
Comment on lines +69 to 70
# Note: See above for more versions necessary for apt installation.
ARG SKAFFOLD_VERSION=2.13.2
@ikogan
ikogan deleted the cs/add-mongocli-correctly branch June 22, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants