[releng] add vagrant cloud image. need to refactor cloud script

Dennis Gilmore ausil at fedoraproject.org
Sun Mar 1 04:48:14 UTC 2015


commit e4e81b4367995f33d7c6d038c5d09ac63a225a69
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Sat Feb 28 22:49:10 2015 -0600

    add vagrant cloud image. need to refactor cloud script

 scripts/build-cloud-images |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/scripts/build-cloud-images b/scripts/build-cloud-images
index 1d12df1..b1e325d 100755
--- a/scripts/build-cloud-images
+++ b/scripts/build-cloud-images
@@ -1,8 +1,9 @@
 #!/bin/bash
 
-# Copyright (C) 2013 Red Hat Inc.
+# Copyright (C) 2013-2015 Red Hat Inc.
 # SPDX-License-Identifier:      GPL-2.0+
 
+#TODO: this needs some major refactoring
 
 RELEASE=$1
 BUILD=$2
@@ -54,6 +55,32 @@ do
     koji image-build Fedora-Cloud-$spin $BUILD --distro Fedora-20 $TARGET  --kickstart=fedora-cloud-$lspin-$GITHASH.ks $url x86_64 --format=qcow2 --format=raw-xz --release=$RELEASE --scratch --repo=$url --nowait --disk-size=6
 done
 
+for spin in Atomic-Vagrant
+do
+    declare -l lspin
+    lspin=$spin
+    kickstart=fedora-cloud-$lspin-$GITHASH.ks
+    ksflatten -c fedora-cloud-$lspin.ks -o $kickstart
+    echo "url --url=$url"|sed -e 's|$arch|$basearch|g' >> $kickstart
+    sed -i -e "s|--url=\"http://compose-x86-02.phx2.fedoraproject.org/compose/atomic/\"|--url=\"$atomicurl\"|g" $kickstart
+
+    koji image-build Fedora-Cloud-$spin $BUILD $TARGET $url x86_64 \
+         --repo=$url
+         --release=$RELEASE \
+         --distro Fedora-20 \
+         --kickstart=fedora-cloud-$lspin-$GITHASH.ks \
+         --format=qcow2 --format=raw-xz \
+         --format=vsphere-ova \
+         --format=rhevm-ova \
+         --ova-option vsphere_ova_format=vagrant-virtualbox \
+         --ova-option rhevm_ova_format=vagrant-libvirt \
+         --ova-option vagrant_sync_directory=/home/vagrant/sync \
+         --scratch \
+         --nowait \
+         --disk-size=6
+done
+
+# Docker images
 for spin in Base
 do
     declare -l lspin


More information about the rel-eng mailing list