forked from allinurl/goaccess
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
24 lines (20 loc) · 685 Bytes
/
Vagrantfile
File metadata and controls
24 lines (20 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$prepare = <<SCRIPT
# repo for libgeoip
add-apt-repository -y ppa:maxmind/ppa
apt-get update
apt-get install -y git autoconf libncursesw5-dev libgeoip-dev
echo "cd /vagrant && autoreconf -fiv && ./configure --enable-geoip --enable-utf8 && make && make install" > /usr/local/bin/build-goaccess
chmod +x /usr/local/bin/build-goaccess
# create command to build goaccess
build-goaccess
goaccess --version
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "shell", inline: $prepare
config.vm.network "forwarded_port", guest: 80, host: 8888
config.vm.provider "virtualbox" do |v|
v.name = "goaccess"
v.memory = 2048
end
end