summaryrefslogtreecommitdiff
path: root/jessie.json
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-11-05 13:16:18 +0100
committervarac <varacanero@zeromail.org>2016-11-05 13:16:18 +0100
commite7adc00728db535ff05bada15cfa5597b7542623 (patch)
tree74bda9733cd3008474c1f3d623be3af5e8bab98c /jessie.json
parent130d01ac8927e086670e14d13e02009896547eb7 (diff)
First working lxc build
Diffstat (limited to 'jessie.json')
-rw-r--r--jessie.json37
1 files changed, 34 insertions, 3 deletions
diff --git a/jessie.json b/jessie.json
index b388f8c..38907f4 100644
--- a/jessie.json
+++ b/jessie.json
@@ -22,8 +22,7 @@
"scripts/virtualbox.sh",
"scripts/vagrant.sh",
"scripts/dep.sh",
- "scripts/cleanup.sh",
- "scripts/zerodisk.sh"
+ "scripts/cleanup.sh"
],
"override": {
"qemu": {
@@ -33,10 +32,25 @@
"execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'"
}
}
+ },
+ {
+ "type": "shell",
+ "scripts": [ "scripts/zerodisk.sh" ],
+ "except": ["lxc"]
}
],
"builders": [
{
+ "type": "lxc",
+ "config_file": "lxc/debian",
+ "template_name": "debian",
+ "template_environment_vars": [
+ "MIRROR=http://deb.debian.org/debian/",
+ "SUITE=jessie"
+ ],
+ "target_runlevel": 3
+ },
+ {
"type": "qemu",
"accelerator": "kvm",
"boot_command": [
@@ -110,7 +124,24 @@
"post-processors": [
[{
"type": "vagrant",
- "keep_input_artifact": false
+ "keep_input_artifact": false,
+ "except": ["lxc"]
+ },
+ {
+ "type": "compress",
+ "output": "output-vagrant/jessie64-lxc.box",
+ "only": ["lxc"]
+ },
+ {
+ "type": "atlas",
+ "only": ["lxc"],
+ "artifact": "{{user `atlas_username`}}/{{user `atlas_name`}}",
+ "artifact_type": "vagrant.box",
+ "metadata": {
+ "provider": "lxc",
+ "created_at": "{{timestamp}}",
+ "version": "{{user `boxversion`}}"
+ }
},
{
"type": "atlas",