-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartscript.sh
30 lines (26 loc) · 992 Bytes
/
startscript.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Set your Github api token
GITHUB_API_TOKEN=YOUR_GITHUB_API_TOKEN
# Set your Project Name
PROJECT_NAME=YOUR_PROJECT_NAME
# Install Dependencies
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
git \
jq
# Install Docker CE
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 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 -y
# Install Docker-Compose
sudo add-apt-repository universe
sudo apt update
sudo apt install docker-compose -y
# Clone Repo and start containers
git clone https://[email protected]/fredicinho/chinapolis.git ~/$PROJECT_NAME
cd ~/$PROJECT_NAME && docker-compose up -d