-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgeo-concerns-vagrant-base.json
74 lines (74 loc) · 3.33 KB
/
geo-concerns-vagrant-base.json
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
{
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.5-server-amd64.iso",
"iso_checksum": "dde07d37647a1d2d9247e33f14e91acb10445a97578384896b4e1d985f754cc1",
"iso_checksum_type": "sha256",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "20m",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"vm_name": "localhost.localdomain",
"http_directory": "http",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname=localhost.localdomain ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
]
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"inline": [
"sleep 30",
"sudo add-apt-repository ppa:webupd8team/java",
"sudo apt-get update -qq",
"echo debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections",
"echo debconf shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections",
"sudo apt-get install --yes oracle-java8-installer",
"sudo apt-get install --yes oracle-java8-set-default",
"FITS_VERSION=0.10.0",
"DOWNLOAD_URL=\"http://projects.iq.harvard.edu/files/fits/files/fits-${FITS_VERSION}.zip\"",
"sudo curl $DOWNLOAD_URL > fits.zip",
"sudo unzip fits.zip",
"sudo chmod a+x fits-$FITS_VERSION/*.sh",
"cd fits-$FITS_VERSION/",
"sudo mv *.properties *.sh lib tools xml /usr/local/bin",
"sudo add-apt-repository -y ppa:ubuntugis/ppa",
"sudo apt-get update",
"sudo apt-get -y install gdal-bin zip libmapnik=2.3* mapnik-utils=2.3* libmapnik-dev=2.3* mapnik-input-plugin-gdal mapnik-input-plugin-ogr mapnik-input-plugin-osm",
"sudo cp -R /usr/lib/mapnik/ /usr/local/lib/.",
"gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3",
"\\curl -sSL https://get.rvm.io | bash -s stable --rails",
"sudo gem install bundler simple_mapnik rgeoserver",
"sudo apt-get -y autoremove",
"sudo apt-get -y clean",
"sudo rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.?",
"sudo rm /var/lib/dhcp/*",
"sudo rm /etc/udev/rules.d/70-persistent-net.rules",
"sudo mkdir /etc/udev/rules.d/70-persistent-net.rules",
"sudo rm -rf /dev/.udev/",
"sudo rm /lib/udev/rules.d/75-persistent-net-generator.rules",
"echo \"vagrant ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers.d/vagrant",
"echo \"Defaults:vagrant !requiretty\" >> /etc/sudoers.d/vagrant",
"chmod 0440 /etc/sudoers.d/vagrant",
"mkdir -pm 700 /home/vagrant/.ssh",
"curl -o /home/vagrant/.ssh/authorized_keys https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub",
"chmod 0600 /home/vagrant/.ssh/authorized_keys",
"chown -R vagrant:vagrant /home/vagrant/.ssh"
]
}],
"post-processors": [
{
"type": "vagrant",
"output": "builds/{{.Provider}}-ubuntu1404.box"
}
]
}