pax_global_header 0000666 0000000 0000000 00000000064 13347763012 0014520 g ustar 00root root 0000000 0000000 52 comment=fae1c2ea35a42f5ba925b415096016cc35126c9f
slapos.package-test-packer-util/ 0000775 0000000 0000000 00000000000 13347763012 0017152 5 ustar 00root root 0000000 0000000 slapos.package-test-packer-util/packer/ 0000775 0000000 0000000 00000000000 13347763012 0020417 5 ustar 00root root 0000000 0000000 slapos.package-test-packer-util/packer/util/ 0000775 0000000 0000000 00000000000 13347763012 0021374 5 ustar 00root root 0000000 0000000 slapos.package-test-packer-util/packer/util/buildhtml.py 0000664 0000000 0000000 00000013026 13347763012 0023734 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
html = """
"""
image_description_dict = {
"output-debian8/packer-debian8.gz" : {
"title": "Debian 8 blank image ",
"description": "Debian Image without any configuration (qcow2, 64bits, nographics)."
},
"output-debian7/packer-debian7.gz" : {
"title": "Debian 7 blank image ",
"description": "Debian Image without any configuration (qcow2, 64bits, nographics)."
},
"output-ubuntu-14-04-server/packer-ubuntu-14-04-server.gz" : {
"title": "Ubuntu Server 14.04 blank image ",
"description": "Ubuntu Server 14.04 Image without any configuration (qcow2, 64bits, nographics)."
},
"output-ubuntu-15-04-server/packer-ubuntu-15-04-server.gz" : {
"title": "Ubuntu Server 15.04 blank image ",
"description": "Ubuntu Server 15.04 Image without any configuration (qcow2, 64bits, nographics)."
},
"output-centos72/packer-centos72.gz" : {
"title": "CentOS 7.2 blank image ",
"description": "CentOS 7.2 without any configuration (qcow2, 64bits, nographics)."
},
"output-centos67/packer-centos67.gz" : {
"title": "CentOS 6.7 blank image ",
"description": "CentOS 6.7 without any configuration (qcow2, 64bits, nographics)."
},
"output-debian8-testing-version/packer-debian8-testing-version.gz" : {
"title": "Debian 8 Image for run automatic tests ",
"description": "Test Debian 8 VM to run tests on boot (qcow2, 64bits, nographics)."
},
"output-debian7-testing-version/packer-debian7-testing-version.gz" : {
"title": "Debian 7 Image for run automatic tests ",
"description": "Test Debian 7 VM to run tests on boot (qcow2, 64bits, nographics)."
},
"output-ubuntu-15-04-server-testing-version/packer-ubuntu-15-04-server-testing-version.gz" : {
"title": "Ubuntu Server 15.04 Image for run automatic tests ",
"description": "Test Ubuntu Server 15.04 VM to run tests on boot (qcow2, 64bits, nographics)."
},
"output-ubuntu-14-04-server-testing-version/packer-ubuntu-14-04-server-testing-version.gz" : {
"title": "Ubuntu Server 14.04 Image for run automatic tests ",
"description": "Test Ubuntu Server 14.04 VM to run tests on boot (qcow2, 64bits, nographics)."
},
"output-centos67-testing-version/packer-centos67-testing-version.gz" : {
"title": "CentOS 6.7 Image for run automatic tests ",
"description": "Test CentOS 6.7 VM to run tests on boot (qcow2, 64bits, nographics)."
},
"output-centos72-testing-version/packer-centos72-testing-version.gz" : {
"title": "CentOS 7.2 Image for run automatic tests ",
"description": "Test CentOS 7.2 VM to run tests on boot (qcow2, 64bits, nographics)."
},
"output-debian8-webrunner/packer-debian8-webrunner.gz" : {
"title": "Debian 8 Image with webrunner standalone inside ",
"description": "Debian 8 VM with webrunner pre-setuped inside (qcow2, 64bits, nographics)."
},
"output-debian8-erp5-standalone/packer-debian8-erp5-standalone.gz" : {
"title": "Debian 8 VM with ERP5 Standalone pre-installed inside",
"description": "Debian 8 VM with ERP5 standalone pre-installed inside (qcow2, 64bits, nographics)."
},
"output-debian8-wendelin/packer-debian8-wendelin.gz" : {
"title": "Debian 8 VM with Wendelin Standalone",
"description": "Debian 8 instance with Wendelin Standalone "\
" pre-setuped inside (qcow2, 64bits, nographics). "
},
"output-debian8-vm-bootstrap/packer-debian8-vm-bootstrap.gz" : {
"title": "Debian 8 VM with support to bootstrap script ",
"description": "Debian 8 vm with support with bootstrap script,"\
" to be used only with KVM Cluster (qcow2, 64bits, nographics)."
},
"output-debian7-vm-bootstrap/packer-debian7-vm-bootstrap.gz" : {
"title": "Debian 7 VM with support to bootstrap script ",
"description": "Debian 7 vm with support with bootstrap script, "\
"to be used only with KVM Cluster. (qcow2, 64bits, nographics)."
},
"output-ubuntu-14-04-server-vm-bootstrap/packer-ubuntu-14-04-server-vm-bootstrap.gz" : {
"title": "Ubuntu 14.04 VM with support to bootstrap script ",
"description": "Ubuntu 14.04 VM with support with bootstrap script,"\
" to be used only with KVM Cluster (qcow2, 64bits, nographics)."
},
"output-ubuntu-15-04-server-vm-bootstrap/packer-ubuntu-15-04-server-vm-bootstrap.gz" : {
"title": "Ubuntu 15.04 VM with support to bootstrap script ",
"description": "Ubuntu 15.04 VM with support to bootstrap script, "\
" to be used only with KVM Cluster (qcow2, 64bits, nographics).."
},
"output-centos68-vm-bootstrap/packer-centos68-vm-bootstrap.gz" : {
"title": "CentOS 6.8 VM with support to bootstrap script ",
"description": "CentOS 6.8 VM with support to bootstrap script, "\
"to be used only with KVM Cluster. (qcow2, 64bits, nographics)"
},
"output-centos72-vm-bootstrap/packer-centos72-vm-bootstrap.gz" : {
"title": "CentOS 7.2 VM with support to bootstrap script ",
"description": "CentOS 7.2 VM with support to bootstrap script, "\
"to be used only with KVM Cluster (qcow2, 64bits, nographics)."
},
}
for line in open("SHA512SUM.txt", "r"):
sha, image_path = line[:-1].split(" ")
print image_path
html += """
%s
Description: %s
Link to download: Download
SHA512SUM: %s
""" % (image_description_dict[image_path]['title'],
image_description_dict[image_path]['description'],
sha, sha)
html += """
"""
print(html)
slapos.package-test-packer-util/packer/util/quick-test 0000664 0000000 0000000 00000000466 13347763012 0023416 0 ustar 00root root 0000000 0000000 #/bin/bash -e
# Quick command to test the VM image with output file.
/usr/bin/qemu-system-x86_64 $2 -drive file=$1,if=virtio,cache=writeback,discard=ignore -boot once=d -m 512M -name test -machine type=pc,accel=kvm -netdev user,id=user.0,hostfwd=tcp::3213-:22 -device virtio-net,netdev=user.0 -vnc 0.0.0.0:47
slapos.package-test-packer-util/packer/util/testupload.sh 0000664 0000000 0000000 00000000240 13347763012 0024110 0 ustar 00root root 0000000 0000000 for i in `cat SHA512SUM.txt | cut -f1 -d\ `;
do
python util/testurl.py http://download.shacache.org/$i && echo OK $i || echo FAIL $i
sleep 10
done
slapos.package-test-packer-util/packer/util/testurl.py 0000664 0000000 0000000 00000000114 13347763012 0023444 0 ustar 00root root 0000000 0000000
import urllib2
import sys
start = urllib2.urlopen(sys.argv[1]).read(24)