diff --git a/vagrant/README.md b/vagrant/README.md new file mode 100644 index 00000000..9dcd8d22 --- /dev/null +++ b/vagrant/README.md @@ -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. + diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile new file mode 100644 index 00000000..bd849cba --- /dev/null +++ b/vagrant/Vagrantfile @@ -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 diff --git a/vagrant/install.sh b/vagrant/install.sh new file mode 100644 index 00000000..7d693511 --- /dev/null +++ b/vagrant/install.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +git clone https://github.com/nextcloud/vm.git + +cd vm + +yes no | sudo bash nextcloud_install_production.sh +