-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhost_setup_1_sudo.sh
More file actions
executable file
·46 lines (37 loc) · 1006 Bytes
/
host_setup_1_sudo.sh
File metadata and controls
executable file
·46 lines (37 loc) · 1006 Bytes
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
#!/bin/bash
# Prompts user to change default editor (e.g., to vim)
#update-alternatives --config editor
# Update the machine (might upgrade kernel too)
#apt-get update
#apt-get upgrade
LIST_OF_APPS="\
htop \
screen \
byobu \
git \
python3 \
python3-pip \
linux-image-extra-$(uname -r) \
aufs-tools \
zip \
"
# Install needed packages
apt-get update
apt-get install -y ${LIST_OF_APPS}
pip3 install virtualenv
pip3 install virtualenvwrapper
# Install latest version of Docker (ideally 1.9+)
program='docker'
if ! prog_loc="$(which $program)" || [ -z "$prog_loc" ]; then
wget -qO- https://get.docker.com/ | sh
fi
pip3 install docker-compose
# Install docker-compose auto-complete
# (which will be pip installed in virtualenv
if ! [ -f "/etc/bash_completion.d/docker-compose" ]
then
curl -L \
https://raw.githubusercontent.com/docker/compose/$(docker-compose --version | \
awk 'NR==1{print $NF}')/contrib/completion/bash/docker-compose > \
/etc/bash_completion.d/docker-compose
fi