forked from l0k0ms/log-workshop-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
37 lines (25 loc) · 1.09 KB
/
setup.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
#!/bin/bash
#####################
# Installing docker #
#####################
sudo apt-get update
sudo apt-get --assume-yes install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get --assume-yes install docker-ce
############################
#Installing docker compose #
############################
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
##############################################
# Launching Docker with the good permissions #
##############################################
sudo service docker start
sudo apt-get --assume-yes install apache2
################################
# Giving the right permissions #
################################
sudo chmod 666 /var/run/docker.sock
sudo chmod +s /usr/sbin/tcpdump