-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mongosh, installed by default in ubuntu-20.04, is absent in ubuntu-22.04 #6626
Comments
Same issue here, I figured out that Ubuntu removed |
Ah, that's a bummer, I guess we just need to add an install step, then. |
Hi @chuma9615 we will take look. |
We can install only official releases and you can see here that their team have no ETA for Ubuntu 22.04. |
Fair enough. Just for future searchers, though, here is a step that does the trick for me: - name: 🍃 Install mongosh
run: |
sudo apt-get update
sudo apt-get install -y wget gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update
sudo apt-get install -y mongodb-mongosh |
Sharing my solution to avoid the installation, you can use a docker service: runs-on: ubuntu-latest
services:
mongo:
image: mongo
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: xxx
MONGO_INITDB_ROOT_PASSWORD: xxx |
Description
We use mongosh to do various database operations in our CI workflows. It is installed in ubuntu-20.04, but migrating to 22.04 has broken those workflows. It's possible to install it, of course, but this was an unpleasant surprise and may be for others as well.
Platforms affected
Runner images affected
Image version and build link
Image: ubuntu-22.04
Version: 20221027.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20221027.1/images/linux/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F2022[10](https://github.com/CircusHR/meetatcircus-web/actions/runs/3528293497/jobs/5930603615#step:1:11)27.1
(Sorry, it's a private repo.)
Is it regression?
ubuntu-20.04
Expected behavior
Run steps incorporating
mongosh
execute the command without extra setup.Actual behavior
Run steps fail with "command not found" or similar language
Repro steps
Steps to reproduce:
ubuntu-22.04
orubuntu-latest
as the runner, runmongosh
as a run step in any workflow.The text was updated successfully, but these errors were encountered: