CloudBuild

Differences between revisions 3 and 4
Revision 3 as of 2012-07-30 09:01:42
Size: 2392
Editor: 78
Comment:
Revision 4 as of 2012-07-30 09:04:38
Size: 2587
Editor: 78
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
This page explains how to create an Ubuntu Localized ISO using the Amazon Cloud. Since Amazon provides free resources for new subscribers, and cheap prices for on demand instances, it can be a good solution for LoCo Teams. This page explains how to create an Ubuntu Localized ISO using the Amazon Cloud. Since Amazon provides free resources for new subscribers, and cheap prices for on demand instances, it can be a good solution for LoCo Teams. If you know another good cloud solution for building Ubuntu CD, just let PaoloSammicheli know :)
Line 10: Line 10:
We used the cloud instances EC2 for the building, and the final image is hosted in a S3 bucket. The [[http://aws.amazon.com/free/|Free usage tier]] include both these services. We used the cloud instances [[http://aws.amazon.com/ec2/|EC2]] for the building, and the final image is hosted in a [[http://aws.amazon.com/s3/|S3]] bucket. The [[http://aws.amazon.com/free/|Free usage tier]] include both these services.
Line 29: Line 29:
  * Shutdown your cloud instance ;)

Introduction

This page explains how to create an Ubuntu Localized ISO using the Amazon Cloud. Since Amazon provides free resources for new subscribers, and cheap prices for on demand instances, it can be a good solution for LoCo Teams. If you know another good cloud solution for building Ubuntu CD, just let PaoloSammicheli know Smile :)

Cloud resources

We used the cloud instances EC2 for the building, and the final image is hosted in a S3 bucket. The Free usage tier include both these services.

The Script

The script is designed to be deployed in a newly created cloud image (based on Ubuntu 12.04, both i386 or amd64). It create the directory structure keeping separate the building directory from the final directory. In this way, building always from the same dir it save time because it reuse the already downloaded ubuntu packages. At the end of the process it create a zsync file and a md5 checksum and it upload it in the s3 bucket. Using the directory format YYYYMMDD it is easily linkable from the Localized Iso Tracker for crowdsourcing the tests.

Source Code

  • Source code available with Bazaar

Instructions

  • Create a S3 Bucket

  • Create a EC2 cloud instance with Ubuntu 12.04 i386 or amd64

  • Log in the image, create a /bin directory in /home/ubuntu directory
    • [optional] run byobu and make it default every login
  • Copy the script inside /home/ubuntu/bin

  • Creating a .s3cfg file in /home/ubuntu with the credentials for your bucket
  • Configure the script with desired release, architecture, language and S3 infos.

  • Run it: LoCo-CD-build YYYYMMDD

    • if you run it without parameters it will get the current day. Ex: 20120730
  • At the end it will upload the iso, md5 and zsync files in a /YYYYMMDD directory in the specified bucket
    • Shutdown your cloud instance Wink ;)

ItalianCD/CloudBuild (last edited 2012-07-30 17:30:16 by 78)