Add Vagrantfile

A simple Vagrant VM based on fedora 25 cloud. It syncs `dist` to
`/usr/local/share/cockpit/<dirname>` on the VM.

Also decrease the minimum required version in `manifest.json` to match
the one that's currently in fedora 25.
This commit is contained in:
Lars Karlitski 2017-07-07 13:30:29 +02:00
parent 6f4a5a62ae
commit b688ee1e0f
3 changed files with 28 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
*.retry
node_modules/
dist/
/.vagrant

26
Vagrantfile vendored Normal file
View file

@ -0,0 +1,26 @@
Vagrant.configure(2) do |config|
config.vm.box = "fedora/25-cloud-base"
config.vm.network "forwarded_port", guest: 9090, host: 9090
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder "dist/", "/usr/local/share/cockpit/" + File.basename(Dir.pwd)
config.vm.provider "libvirt" do |libvirt|
libvirt.memory = 1024
end
config.vm.provider "virtualbox" do |virtualbox|
virtualbox.memory = 1024
end
config.vm.provision "shell", inline: <<-EOF
set -eu
sudo dnf install -y cockpit
printf "[WebService]\nAllowUnencrypted=true\n" > /etc/cockpit/cockpit.conf
systemctl enable cockpit.socket
systemctl start cockpit.socket
EOF
end

View file

@ -1,7 +1,7 @@
{
"version": "0.1",
"requires": {
"cockpit": "138"
"cockpit": "137"
},
"tools": {