]> BookStack Code Mirror - devops/commitdiff
Replace with actual Vagrantfile 5/head
authorRenat Zaripov <redacted>
Mon, 24 Oct 2016 19:37:39 +0000 (22:37 +0300)
committerRenat Zaripov <redacted>
Mon, 24 Oct 2016 19:37:39 +0000 (22:37 +0300)
Vagrantfile

index 9c589a00e4ffb3741c05088a6bb05fd332c74a2b..836d4f809abf0bdb5fdfea8d52cbe34cdc91384f 100644 (file)
@@ -1,6 +1,15 @@
 # -*- mode: ruby -*-
 # vi: set ft=ruby :
 
+$script = <<SCRIPT
+# export http_proxy="http://proxy_host:proxy_port"
+# export https_proxy="http://proxy_host:proxy_port"
+wget https://raw.githubusercontent.com/BookStackApp/devops/master/scripts/installation-ubuntu-16.04.sh
+chmod a+x installation-ubuntu-16.04.sh
+./installation-ubuntu-16.04.sh
+echo "BookStack available by url: http://localhost:8080"
+SCRIPT
+
 VAGRANTFILE_API_VERSION = "2"
 
 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
@@ -9,11 +18,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
     vb.memory = 1024
     vb.name = 'bookstack'
   end
+                
   config.vm.define :bookstack do |config|
-    config.vm.box = "bento/ubuntu-16.04"
+    config.vm.box = "ubuntu/xenial64"
     config.vm.boot_timeout = 1800
-    config.ssh.username = 'vagrant'
-    config.ssh.password = 'vagrant'
+    config.vm.provision "shell", inline: $script
+    config.vm.network "forwarded_port", guest: 80, host: 8080
   end
 end
+