The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / doc / create-release.txt
diff --git a/cirros-testvm/src-cirros/doc/create-release.txt b/cirros-testvm/src-cirros/doc/create-release.txt
new file mode 100644 (file)
index 0000000..6063fb4
--- /dev/null
@@ -0,0 +1,35 @@
+# set version to build
+VER=0.3.2
+
+# set up the system / install any deps
+./bin/system-setup
+
+bzr init-repo cirros
+cd cirros
+bzr branch lp:cirros trunk
+
+bzr branch -r $VER trunk cirros-$VER
+cd cirros-$VER
+
+./bin/build-release $VER 2>&1 | tee build-$VER.log
+
+# pull that release content into an existing mirror dir
+rsync -av --progress $USER@$HOST:/path/to/build-$VER/release $VER
+
+## now create simplestreams data ##
+# to create simplestream data with mirror at $mirror_d
+( cd .. && bzr branch lp:simplestreams simplestreams )
+bzr branch lp:cirros cirros
+
+./bin/mirror-dump-sstream-data "$mirror_d" > mdata.txt
+../simplestreams/tools/tenv tab2streams mdata.txt cirros-streams.d
+../simplestreams/tools/tenv env -u GNUPGHOME   \
+    SS_GPG_BATCH=1 SS_GPG_DEFAULT_KEY=A5DDB840 js2signed cirros-streams.d
+##
+
+# to sign individual things
+for x in "$out/release/"*; do
+   [ "${x%.asc}" = "$x" ] || continue
+   [ -e "$x.asc" ] && continue
+   gpg --armor --sign --detach-sig "$x"
+done