-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_vm.sh
35 lines (29 loc) · 1.04 KB
/
init_vm.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
31
32
33
34
35
#!/bin/bash
GIT_REPO=https://github.com/minkj1992/jarvis.git
DIR_NAME=jarvis
# Uninstall old versions
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
# Install docker using the rpm repository
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker
sudo usermod -aG docker ${USER}
sudo systemctl restart docker
# gcc make gcc-c++
sudo yum install gcc make gcc-c++ git -y
# Initialize git
git config --global user.name 'minkj1992'
git config --global user.email [email protected]
# Clone git repository
git clone $GIT_REPO
cd $DIR_NAME
echo 'Before run lets-encrypt set domain to ip and domain server name'
chmod +x ./init-letsencrypt.sh