aboutsummaryrefslogtreecommitdiff
path: root/lava-debian-large-stretch-amd64-vm.yaml
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2016-10-26 06:00:43 +0100
committerNeil Williams <neil.williams@linaro.org>2016-10-26 06:30:00 +0100
commit2baf8aaf9066130d96589a11aaaf9566d0f70af6 (patch)
treebe6ae4c900b0c418c27a0f6c0b98c3fa45cd6d81 /lava-debian-large-stretch-amd64-vm.yaml
parenta3351013bb7eaa6e4597bd8805b5149976eea5df (diff)
Add Stretch images for support in 2016.11 release
LAVA-780 Provide stretch images and use in docs for the 2016.11 release, aimed at stretch. Change-Id: Idffa935e596056c022bb9559d023a79232bfc802
Diffstat (limited to 'lava-debian-large-stretch-amd64-vm.yaml')
-rw-r--r--lava-debian-large-stretch-amd64-vm.yaml107
1 files changed, 107 insertions, 0 deletions
diff --git a/lava-debian-large-stretch-amd64-vm.yaml b/lava-debian-large-stretch-amd64-vm.yaml
new file mode 100644
index 00000000..c5f6d229
--- /dev/null
+++ b/lava-debian-large-stretch-amd64-vm.yaml
@@ -0,0 +1,107 @@
+# Large image, expressly to be able to do lava-server tests inside
+# which needs lots of dependencies & space for postgresql.
+# for use testing with django1.10.
+
+# lava reports & can check the checksum of the compressed image
+# after download.
+
+- job:
+ name: lava-debian-large-stretch-amd64-vm
+ project-type: freestyle
+ defaults: global
+ logrotate:
+ daysToKeep: 90
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ platform-leads:
+ - job-build
+ - job-cancel
+ disabled: false
+ node: docker-jessie-amd64
+ display-name: 'LAVA - Build large amd64 Debian Stretch VM'
+ wrappers:
+ - timestamps
+ builders:
+ - linaro-publish-token
+ - shell: |
+ #!/bin/bash
+
+ set -ex
+
+ export LANG=C
+ export APT_LISTCHANGES_FRONTEND=none
+ echo "deb http://mirror.bytemark.co.uk/debian stretch main" > stretch.list
+ sudo mv stretch.list /etc/apt/sources.list.d/
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends vmdebootstrap grub2-common
+
+ mkdir out
+ sudo vmdebootstrap \
+ --verbose \
+ --arch amd64 \
+ --image=${WORKSPACE}/out/large-stretch.img \
+ --size=3G \
+ --distribution=stretch \
+ --hostname debian \
+ --mirror=http://mirror.bytemark.co.uk/debian \
+ --enable-dhcp \
+ --systemd \
+ --configure-apt \
+ --grub \
+ --serial-console \
+ --log=${WORKSPACE}/out/vmdebootstrap.log \
+ --log-level=debug \
+ --log-mode=0644
+
+ cat > ${WORKSPACE}/out/debian-large-stretch-amd64-readme.html <<EOF
+ <html><body><pre>
+ lava-debian-large-stretch-amd64-vm build instructions"
+ =====================================================
+
+ This large image can be used for any tests on stretch (django1.10).
+
+ The image uses a prompt of "root@debian:"
+ </pre>
+ <p><a href="https://ci.linaro.org/view/lava-ci/job/lava-debian-large-stretch-amd64-vm/">
+ https://ci.linaro.org/view/lava-ci/job/lava-debian-large-stretch-amd64-vm/</a></p>
+
+ <p><a href="https://ci.linaro.org/view/lava-ci/job/lava-debian-large-stretch-amd64-vm/console">
+ https://ci.linaro.org/view/lava-ci/job/lava-debian-large-stretch-amd64-vm/console</a></p>
+
+ <p><a href="https://git.linaro.org/ci/job/configs.git/blob/HEAD:/lava-debian-large-stretch-amd64-vm.yaml">
+ https://git.linaro.org/ci/job/configs.git/blob/HEAD:/lava-debian-large-stretch-amd64-vm.yaml</a></p>
+
+ <p><a href="http://snapshots.linaro.org/components/lava/standard/debian/stretch/amd64/large/${BUILD_NUMBER}">
+ http://snapshots.linaro.org/components/lava/standard/debian/stretch/amd64/large/${BUILD_NUMBER}</a></p>
+
+ <pre>
+ The build system is a Debian Jessie VM with stretch enabled.
+
+ echo "deb http://mirror.bytemark.co.uk/debian stretch main" > stretch.list
+ sudo mv stretch.list /etc/apt/sources.list.d/
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends vmdebootstrap grub2-common
+
+ See vmdebootstrap.log for the full log.
+ </pre></body></html>
+ EOF
+
+ gzip -9 ${WORKSPACE}/out/large-stretch.img
+
+ md5sum ${WORKSPACE}/out/large-stretch.img.gz > ${WORKSPACE}/out/large-stretch.img.gz.md5sum.txt
+ sha256sum ${WORKSPACE}/out/large-stretch.img.gz > ${WORKSPACE}/out/large-stretch.img.gz.sha256sum.txt
+
+ # echo final location
+ echo Publishing to: http://snapshots.linaro.org/components/lava/standard/debian/stretch/amd64/large/${BUILD_NUMBER}
+
+ # Publish
+ test -d ${HOME}/bin || mkdir ${HOME}/bin
+ wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
+ time python ${HOME}/bin/linaro-cp.py --api_version 3 out components/lava/standard/debian/stretch/amd64/large/${BUILD_NUMBER}
+ publishers:
+ - email:
+ recipients: 'neil.williams@linaro.org fathi.boudra@linaro.org'