-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantboot
55 lines (38 loc) · 1.19 KB
/
Vagrantboot
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
#!/usr/bin/env bash
sudo apt-get update
# upgrading causes a problem for Grub and debconf bugs you about it
# DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
# install the bare minimum to survive
sudo apt-get -y install screen git curl
# install MongoDB
sudo apt-get -y install mongodb
# change the MongoDB listen port
sudo sed -i 's/#port = 27017/port = 27017/' /etc/mongodb.conf
# initialize MongoDB with some default data
# FIXME
# install the JVM - unluckily there's no openjdk-7-jdk-headless
sudo apt-get -y install openjdk-7-jdk
# oh noes, install Maven
sudo apt-get -y install maven
# have brain-dead Maven understand which Java to use
cat << EOF >> /home/vagrant/.profile
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre
EOF
source /home/vagrant/.profile
# install node
cd /tmp
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
source /home/vagrant/.nvm/nvm.sh
nvm install 0.10.21
nvm use 0.10.21
nvm alias default 0.10.21
# install Bower
npm install -g bower
# install phantow
npm install -g phantomjs
# install Grunt
npm install -g grunt-cli
# init project
cd /vagrant
npm install
bower install