Skip to content

Commit

Permalink
uncomment setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar5526 committed Dec 29, 2023
1 parent b0d5161 commit c8994b2
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions server/setup-sarthi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@ if [ "$EUID" -ne 0 ]; then
exit 1
fi

# # Update package index
# echo -e "${YELLOW}${POINT} Updating package index...${NC}"
# apt update

# # Install prerequisites
# echo -e "${YELLOW}${POINT} Installing prerequisites...${NC}"
# apt install -y apt-transport-https ca-certificates curl software-properties-common

# # Install Docker
# echo -e "${YELLOW}${POINT} Installing Docker...${NC}"
# curl -fsSL https://get.docker.com -o get-docker.sh
# sh get-docker.sh
# rm get-docker.sh

# # Add user to docker group
# echo -e "${YELLOW}${POINT} Adding user to the docker group...${NC}"
# usermod -aG docker $USER
# newgrp docker

# # Install Docker Compose
# echo -e "${YELLOW}${POINT} Installing Docker Compose...${NC}"
# curl -sSL https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose
# Update package index
echo -e "${YELLOW}${POINT} Updating package index...${NC}"
apt update

# Install prerequisites
echo -e "${YELLOW}${POINT} Installing prerequisites...${NC}"
apt install -y apt-transport-https ca-certificates curl software-properties-common

# Install Docker
echo -e "${YELLOW}${POINT} Installing Docker...${NC}"
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
rm get-docker.sh

# Add user to docker group
echo -e "${YELLOW}${POINT} Adding user to the docker group...${NC}"
usermod -aG docker $USER
newgrp docker

# Install Docker Compose
echo -e "${YELLOW}${POINT} Installing Docker Compose...${NC}"
curl -sSL https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

# Start Grafaa + Loki services
echo -e "${YELLOW}${POINT} Starting Loki + Grafana to export logs ${NC}"
Expand Down

0 comments on commit c8994b2

Please sign in to comment.