Skip to content

Instantly share code, notes, and snippets.

@metasansana
Last active February 28, 2023 16:59
Show Gist options
  • Save metasansana/36c816cb3435345d764fafac4805983c to your computer and use it in GitHub Desktop.
Save metasansana/36c816cb3435345d764fafac4805983c to your computer and use it in GitHub Desktop.
Installs and starts mongodb on a github runner for tests.
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-org
sudo systemctl daemon-reload
sudo systemctl start mongod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment