-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootstrap-os.sh
executable file
·42 lines (34 loc) · 1.07 KB
/
bootstrap-os.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
36
37
38
39
40
41
42
#!/bin/bash
# Author: Marc Gorzala
# I am using this script on a freshly created servers of my
# cloud provider to install something like the following
#
# * git
# * docker
# * docker-compose
# just everything to enable me to start the nextcloud compose project
#
# You can use this script as a guide what you have to install.
# You can even give the script a try to and invoke it on a virgin
# debian based machine.
# If you are lucky, fine! If not, just reproduce what this script
# is intended to do.
# 1) Update package-database and upgrade the base system
sudo apt -y update
sudo apt -y dist-upgrade
# 2) Install docker
sudo curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
rm get-docker.sh
# 3) Install docker-compose
sudo apt -y install python3
sudo apt -y install python3-setuptools
sudo apt -y install python3-pip
sudo pip3 install docker-compose
# 4) Install git
sudo apt -y install git
# 5) Vim is always good to have ;-)
sudo apt -y install vim
# 6) Clone dat repo that configures all
mkdir /root/
git clone https://github.com/gorzala/nextcloud.git