oracle-server-init/installer.sh

58 lines
1.9 KiB
Bash
Raw Normal View History

2022-01-19 14:21:25 +00:00
#!/bin/sh
## Installing Cloudpanel
echo "Installing Cloudpanel ..."
apt update && apt -y upgrade && apt -y install curl wget sudo
2022-03-24 09:23:36 +00:00
echo "Installed Dependencies ..."
curl -sSL https://installer.cloudpanel.io/ce/v2/install.sh | sudo bash
2022-03-24 09:23:36 +00:00
echo "Installed Cloudpanel ..."
2022-01-19 14:21:25 +00:00
## Installing Docker
echo "Installing Docker ..."
apt install ca-certificates curl gnupg lsb-release -y
curl -fsSL https://download.docker.com/linux/debian/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/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
2022-03-24 09:23:36 +00:00
echo "\n"
apt-get update -y
apt-get install docker-ce docker-ce-cli containerd.io -y
echo "Installed Docker ..."
2022-01-19 14:21:25 +00:00
## Installing docker-compose
echo "Installing docker-compose ..."
apt-get install docker-compose-plugin
2022-03-24 09:23:36 +00:00
echo "Installed docker-compose ..."
2022-01-19 14:21:25 +00:00
## Installing Portainer
echo "Installing Portainer ..."
docker volume create portainer_data
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:latest
2022-03-24 09:23:36 +00:00
echo "\n"
2022-01-19 14:21:25 +00:00
## Installing Gitea
echo "Installing Gitea ..."
git clone https://github.com/BRAVO68WEB/gitea-installer
cd gitea-installer
bash ./gitea-installer-en.sh
2022-03-24 09:23:36 +00:00
echo "Installed Gitea ..."
2022-01-19 14:21:25 +00:00
## Configure Git
2022-03-24 09:23:36 +00:00
echo "Configuring Git ..."
read -p "Enter your git username: " git_username
read -p "Enter your git email: " git_email
git config --global user.name "$git_username"
git config --global user.email "$git_email"
2022-01-19 14:21:25 +00:00
## Insatll basic npm packages
echo "Insatll basic npm packages ..."
yarn global add nodemon
## Install snapcraft
echo "Install snapcraft ..."
2022-03-24 09:23:36 +00:00
apt install snapd -y
2022-01-19 14:21:25 +00:00
2022-03-24 09:23:36 +00:00
## Install Bpytop
echo "Install Bpytop ..."
snap install bpytop