-
Notifications
You must be signed in to change notification settings - Fork 110
/
Vagrantfile
25 lines (21 loc) · 913 Bytes
/
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
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.ssh.forward_agent = true
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.synced_folder ".", "/vespa-sample-apps"
config.vm.hostname = "vespa-test"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.name = "vespa-sample-apps"
vb.memory = "3074"
vb.cpus = 1
end
config.vm.provision "shell", env: {"VESPA_HOME" => "/opt/vespa", "PATH" => "$PATH:/opt/vespa/bin"}, inline: <<-SHELL
# Install latest Vespa release
yum -y install yum-utils epel-release
yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/epel-7/group_vespa-vespa-epel-7.repo
yum -y install centos-release-scl
yum -y install vespa
SHELL
end