Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Automating builds


This recipe joins together all the previous recipes in this chapter. Prepared virtual machine images and SSH with key authentication will allow us to build OpenJDK in fully automated mode using simple bash scripts without additional tools.

Getting ready

For this recipe, we will require a Linux or Mac OS host machine running.

How to do it...

The following procedure will help us to prepare the Windows virtual machine:

  1. Prepare SSH keys as described in the Preparing SSH keys recipe in this chapter.

  2. Set up the VirtualBox installation and its network settings as described in the Installing VirtualBox recipe in this chapter.

  3. Prepare the virtual machine images as described in the previous recipes in this chapter.

  4. For each VM image, prepare a list of environment variables, which will be used by the build script (for example, Windows):

    export VM_ADDRESS=192.168.42.1
    export VM_NAME=jdk7-windows-amd64
    export VM_OSTYPE=Windows7_64
    export VM_MEMORY=1780
    export VM_IOAPIC=on
    export VM_NICTYPE...