add vagrant

Signed-off-by: enoch85 <github@hanssonit.se>
This commit is contained in:
enoch85 2020-03-20 20:39:44 +01:00
parent 8acd7e7763
commit 731eb99177
3 changed files with 37 additions and 0 deletions

18
vagrant/README.md Normal file
View File

@ -0,0 +1,18 @@
# vagrant-nextcloud
This repo contains all the Vagrant config to get an Ubuntu 18.04 VM with the latest version of Nextcloud installed.
# Setup
`vagrant up` will install everything
Go to [https://localhost:8080/](https://localhost:8080/) and access Nextcloud with credentials `ncadmin / nextcloud`
# Information
- `VagrantFile` contains instructions to run an inline script: `install.sh`
- `install.sh` does the following
- Clones https://github.com/nextcloud/vm
- Runs `yes no | sudo bash nextcloud_install_production.sh` which uses the default values for each prompt
See https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh for default values.

11
vagrant/Vagrantfile vendored Normal file
View File

@ -0,0 +1,11 @@
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.network "forwarded_port", guest: 443, host: 8080
config.vm.provision "shell", path: "install.sh"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
config.vm.provider "vmware_desktop" do |v|
v.vmx["memsize"] = "2048"
end
end

8
vagrant/install.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
git clone https://github.com/nextcloud/vm.git
cd vm
yes no | sudo bash nextcloud_install_production.sh