forked from plone/plonedev.vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (26 loc) · 1.12 KB
/
Vagrantfile
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
PACKAGES = "build-essential python-dev libjpeg-dev libxml2-dev libxslt-dev git libz-dev libssl-dev wv poppler-utils"
UI_URL = "https://launchpad.net/plone/5.1/5.1rc1/+download/Plone-5.1rc1-UnifiedInstaller-r1.tgz"
UI_OPTIONS = "standalone --password=admin"
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial32"
config.ssh.insert_key = false
config.vm.network :forwarded_port, guest: 8080, host: 8080
config.vm.provider "virtualbox" do |vb|
#vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--name", "plonedev" ]
end
config.vm.provision "shell", inline: "apt-get update"
config.vm.provision "shell", inline: "apt-get install -y " + PACKAGES
# Create a Putty-style keyfile for Windows users
config.vm.provision :shell do |shell|
shell.path = "manifests/host_setup.sh"
shell.args = RUBY_PLATFORM
end
# install Plone
config.vm.provision :shell do |shell|
shell.path = "manifests/install_plone.sh"
shell.args = UI_URL + " '" + UI_OPTIONS + "'"
end
end