Skip to content

Commit

Permalink
no input on apt get install ops
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Jan 14, 2023
1 parent 770d6f1 commit a27c32d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ brew install awscli terraform terragrunt helm k9s

# install mongodb client
# -------------------------------------------------------------
sudo apt install -y software-properties-common gnupg apt-transport-https ca-certificates
sudo apt install -y software-properties-common gnupg apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
echo "deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt update
sudo apt install mongodb-org
sudo apt install mongodb-org -y
mongo --version

# install Docker CE
Expand All @@ -95,7 +95,7 @@ sudo apt install lsb-release ca-certificates apt-transport-https software-proper
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce
sudo apt install docker-ce -y
sudo usermod -aG docker $USER
sudo systemctl enable docker

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ df -h

sudo apt update
sudo apt upgrade -y
sudo apt install -y awscli software-properties-common gnupg apt-transport-https ca-certificates
sudo apt install -y awscli software-properties-common gnupg apt-transport-https ca-certificates -y
sudo apt autoremove

# install mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
echo "deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt update
sudo apt install mongodb-org
sudo apt install mongodb-org -y

sudo chown -R mongodb /var/lib/mongodb
sudo chgrp -R mongodb /var/lib/mongodb
Expand Down

0 comments on commit a27c32d

Please sign in to comment.