From 49092b14d8346f0b86731ec995384bd213a443ab Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Fri, 17 May 2024 10:52:18 +0100 Subject: [PATCH] Create install_dependencies.sh --- scripts/install_dependencies.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/install_dependencies.sh diff --git a/scripts/install_dependencies.sh b/scripts/install_dependencies.sh new file mode 100644 index 0000000..a45b5ba --- /dev/null +++ b/scripts/install_dependencies.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +# clear codedeploy-agent files for a fresh install +sudo rm -rf /home/ubuntu/install + +# install CodeDeploy agent +sudo apt-get -y update +sudo apt-get -y install ruby +sudo apt-get -y install wget +cd /home/ubuntu +wget https://aws-codedeploy-eu-north-1.s3.amazonaws.com/latest/install +sudo chmod +x ./install +sudo ./install auto + +# install golang +sudo apt-get -y install golang-go + +# install nodeJS and nvm +sudo apt install nodejs +sudo apt install npm +wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash