Drop Vagrantfile
Nobody in the development team has ever really used that, it needs a ton of dependencies, and doesn't work in toolbox/Silverblue. Our own vm-run/image-customize etc. machinery is efficient enough, and proven to work. Closes #321
This commit is contained in:
parent
4166f0a5d4
commit
5660330c4c
2 changed files with 0 additions and 38 deletions
|
|
@ -80,14 +80,6 @@ You can also run the test against a different Cockpit image, for example:
|
||||||
|
|
||||||
TEST_OS=fedora-32 make check
|
TEST_OS=fedora-32 make check
|
||||||
|
|
||||||
# Vagrant
|
|
||||||
|
|
||||||
This directory contains a Vagrantfile that installs and starts cockpit on a
|
|
||||||
Fedora 26 cloud image. Run `vagrant up` to start it and `vagrant rsync` to
|
|
||||||
synchronize the `dist` directory to `/usr/local/share/cockit/starter-kit`. Use
|
|
||||||
`vagrant rsync-auto` to automatically sync when contents of the `dist`
|
|
||||||
directory change.
|
|
||||||
|
|
||||||
# Customizing
|
# Customizing
|
||||||
|
|
||||||
After cloning the Starter Kit you should rename the files, package names, and
|
After cloning the Starter Kit you should rename the files, package names, and
|
||||||
|
|
|
||||||
30
Vagrantfile
vendored
30
Vagrantfile
vendored
|
|
@ -1,30 +0,0 @@
|
||||||
Vagrant.configure(2) do |config|
|
|
||||||
config.vm.box = "fedora/28-cloud-base"
|
|
||||||
config.vm.network "forwarded_port", guest: 9090, host: 9090
|
|
||||||
|
|
||||||
if Dir.glob("dist/*").length == 0
|
|
||||||
config.vm.post_up_message = "NOTE: Distribution directory is empty. Run `make` to see your module show up in cockpit"
|
|
||||||
end
|
|
||||||
|
|
||||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
||||||
config.vm.synced_folder "dist/", "/usr/local/share/cockpit/" + File.basename(Dir.pwd), type: "rsync", create: true
|
|
||||||
|
|
||||||
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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue