From 7937196955b9ae41cb718bea97ff700e36e919af Mon Sep 17 00:00:00 2001 From: Jonathan Felder Date: Tue, 24 Oct 2023 12:35:22 -0700 Subject: [PATCH] [DH-160] install mongosh --- deployments/data101/image/postBuild | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 deployments/data101/image/postBuild diff --git a/deployments/data101/image/postBuild b/deployments/data101/image/postBuild new file mode 100755 index 000000000..5d833d06d --- /dev/null +++ b/deployments/data101/image/postBuild @@ -0,0 +1,16 @@ +#!/usr/bin/bash +set -e + +# install mongosh for DH-160 + +sudo apt-get install -y gnupg curl + +curl -fsSL https://pgp.mongodb.com/server-7.0.asc | \ + sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \ + --dearmor + +echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list + +sudo apt-get update + +sudo apt-get install -y mongodb-mongosh mongodb-org-tools