From 73678295a3fed7b0b87fefaf0cf191ce68724b48 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 22 Sep 2018 14:12:43 -0400 Subject: [PATCH] lxd builder --- Makefile | 6 ++++++ packer/build.json | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/Makefile b/Makefile index 105effe..f7e1c90 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,12 @@ lxc: rm -rf .packer/build/lxc $(PACKER) build -only lxc packer/build.json +lxd: + mkdir -p dist + rm -rf dist/*lxd* + rm -rf .packer/build/lxd + $(PACKER) build -only lxd packer/build.json + release: bash scripts/release.sh diff --git a/packer/build.json b/packer/build.json index 6eda73e..8ede12a 100644 --- a/packer/build.json +++ b/packer/build.json @@ -24,6 +24,15 @@ ], "target_runlevel": 3 }, + { + "type": "lxd", + "name": "lxd", + "image": "images:debian/{{ user `release` }}", + "output_image": "shell-local", + "publish_properties": { + "description": "hashbang shell-server" + } + }, { "name": "qemu", "type": "qemu",