-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·46 lines (35 loc) · 1.03 KB
/
setup.sh
File metadata and controls
executable file
·46 lines (35 loc) · 1.03 KB
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
43
44
45
46
#!/bin/bash
###########################
# Docker SETUP
###########################
#set-up repository
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
#install docker ingine
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
echo "Docker Setup complete"
###########################
# NodeJS setup
###########################
sudo apt-get install -y nodejs
sudo apt-get install -y npm
echo "NodeJS setup Complete"
###########################
#Install dependencies
###########################
sudo docker build . #pull docker images for php, python, node
sudo npm i #install dependencies from package.json
echo "Successfully install project dependencies"
echo "Setup Completed"