Skip to content

Instantly share code, notes, and snippets.

@ecarlson94
Last active February 15, 2024 09:51
Show Gist options
  • Save ecarlson94/76733ef7a93cbde74d918d6a4c9452e9 to your computer and use it in GitHub Desktop.
Save ecarlson94/76733ef7a93cbde74d918d6a4c9452e9 to your computer and use it in GitHub Desktop.
Install MongoDB on Alpine Linux

Steps to install MongoDB on Alpine

echo "http://dl-cdn.alpine-linux.org/alpine/v3.9/main" >> sudo tee -a /etc/apk/repositories
echo "http://dl-cdn.alpine-linux.org/alpine/v3.9/community" >> sudo tee -a /etc/apk/repositories

sudo apk add --update mongodb yaml-cpp=0.6.2-r2
export MONGOMS_SYSTEM_BINARY=/usr/bin/mongod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment