Skip to content

Add mongocli#33

Merged
ikogan merged 1 commit into
mainfrom
cs/add-mongo-cli
Jun 8, 2026
Merged

Add mongocli#33
ikogan merged 1 commit into
mainfrom
cs/add-mongo-cli

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:31
@ikogan
ikogan merged commit c4dce44 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 adds MongoDB’s mongocli to the devcontainer base image by introducing a new build argument for the CLI version and installing the corresponding .deb during image build.

Changes:

  • Add MONGOCLI_VERSION as a Docker build argument.
  • Extend install-system-dependencies.sh to download and install mongocli based on detected CPU architecture.

Reviewed changes

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

File Description
install-system-dependencies.sh Adds architecture mapping and installs mongocli from a GitHub release .deb.
Dockerfile Introduces ARG MONGOCLI_VERSION to parameterize the mongocli install.

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

Comment on lines +5 to +9
MONGOCLI_ARCHITECTURE=${DPKG_ARCHITECTURE}

if [ "${MONGOCLI_ARCHITECTURE}" = "amd64" ]; then
MONGOCLI_ARCHITECTURE=x86_64
fi
Comment on lines +45 to +48
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 && \
apt-get update && \
apt-get install -y /tmp/ohio-pkgs/mongocli.deb && \
rm -Rf /tmp/ohio-pkgs/*
@ikogan
ikogan deleted the cs/add-mongo-cli 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