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:
parent
6f4a5a62ae
commit
e14982020a
3 changed files with 28 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@
|
||||||
*.retry
|
*.retry
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
|
/.vagrant
|
||||||
|
|
|
||||||
26
Vagrantfile
vendored
Normal file
26
Vagrantfile
vendored
Normal 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
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"version": "0.1",
|
"version": "0.1",
|
||||||
"requires": {
|
"requires": {
|
||||||
"cockpit": "138"
|
"cockpit": "137"
|
||||||
},
|
},
|
||||||
|
|
||||||
"tools": {
|
"tools": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue