Vagrant configuration for bootstrap debian/ubuntu images
This commit is contained in:
parent
663407b241
commit
ab7a1d5d75
3
tools/qemu-debian-img/.gitignore
vendored
Normal file
3
tools/qemu-debian-img/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*.img
|
||||||
|
*.log
|
||||||
|
vmlinuz*
|
17
tools/qemu-debian-img/Vagrantfile
vendored
Normal file
17
tools/qemu-debian-img/Vagrantfile
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.box = "ubuntu/bionic64"
|
||||||
|
|
||||||
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y debootstrap qemu golang
|
||||||
|
mkdir qemu-debian-img && cd qemu-debian-img
|
||||||
|
cp /vagrant/main.go ./
|
||||||
|
GOBIN=/usr/bin go get ./
|
||||||
|
qemu-debian-img generate --repository="http://archive.ubuntu.com/ubuntu" --release="bionic" bionic.img
|
||||||
|
cp bionic.img /vagrant/
|
||||||
|
cp /boot/vmlinuz-* /vagrant/vmlinuz-bionic
|
||||||
|
SHELL
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user