summaryrefslogtreecommitdiff
path: root/worker.vmdb
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-05 19:47:51 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-05 19:47:51 +0300
commit20990502b932c9c891d4af7f5ca3fa08e3008339 (patch)
tree0c5d2f722d8236469eaf56a39d7efddb77467870 /worker.vmdb
parent9d9d6e0dc296829e8c54838b4a8725db80abccdc (diff)
downloadick-contractor-20990502b932c9c891d4af7f5ca3fa08e3008339.tar.gz
Change: setup to create a nested VM and run a build
Diffstat (limited to 'worker.vmdb')
-rw-r--r--worker.vmdb46
1 files changed, 46 insertions, 0 deletions
diff --git a/worker.vmdb b/worker.vmdb
new file mode 100644
index 0000000..56218ae
--- /dev/null
+++ b/worker.vmdb
@@ -0,0 +1,46 @@
+# An image for running the Ick contractor inner VM.
+
+steps:
+ - mkimg: "{{ output }}"
+ size: 4G
+
+ - mklabel: msdos
+ device: "{{ output }}"
+
+ - mkpart: primary
+ device: "{{ output }}"
+ start: 0%
+ end: 100%
+ tag: /
+
+ - kpartx: "{{ output }}"
+
+ - mkfs: ext4
+ partition: /
+
+ - mount: /
+
+ - unpack-rootfs: /
+
+ - debootstrap: buster
+ mirror: http://deb.debian.org/debian
+ target: /
+ unless: rootfs_unpacked
+
+ - apt: install
+ packages:
+ - linux-image-amd64
+ - python3
+ tag: /
+ unless: rootfs_unpacked
+
+ - cache-rootfs: /
+ unless: rootfs_unpacked
+
+ - fstab: /
+
+ - ansible: /
+ playbook: worker.yml
+
+ - grub: bios
+ tag: /