-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·77 lines (63 loc) · 1.82 KB
/
build.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
#Static variables
COMPOSE_VERSION='1.14.0'
DOCKER_VERSION='17.06.0'
sudo mkdir /data
sudo mkdir /etc/network/interfaces.d
#Update
sudo apt-get update -qq
sudo apt-get dist-upgrade -y -qq
#Standard apps
sudo apt-get install -y \
curl \
openssh-server \
vim \
build-essential \
linux-headers-server \
git \
tmux \
zip \
unzip \
vim \
fail2ban \
htop \
ntp \
apache2-utils \
mysql-client-core-5.5 \
siege \
dstat \
htop \
sysstat \
nfs-common \
dnsutils
sudo timedatectl set-timezone America/New_York
#Git settings
git config --global user.name "Jacob Cody Wimer"
git config --global user.email "[email protected]"
# Install docker key and repo
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
sudo add-apt-repository -y \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Install docker and compose
sudo apt-get update -qq
sudo apt-get install -y -qq docker-ce=${DOCKER_VERSION}~ce-0~ubuntu
sudo curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Add cody to docker group
sudo usermod -a -G docker cody
#Heroku toolbelt
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
#Copy update script
#sudo cp update.sh /etc/cron.daily/update.sh
#VIM Setup
cp configs/.vimrc ~/
#Install pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
#Install nerdtree
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
#Finished message
echo If this is a normal vm being used as a template, run non-vagrant-extras.sh, reboot, and run template-clean.sh.
echo If this is a vagrant machine you are ready to go.