Creating a Custom Image

To create a custom CloudyCluster Image with additional software or libraries.

When using a CloudyCluster Custom Image you must first:

Complete the following steps to locate the CloudyCluster Image Name of the instance to base the custom ami with.
  1. Navigate to the CloudyCluster GCP Marketplace.
  2. Enable CloudyCluster
  3. On the subsequent page, locate the image name, after you obtain this image name, you will enter it in the field where prompted.
To customize your CloudyCluster Image, complete the following steps
  1. Navigate to the launch configuration from the GCP marketplace
  2. Select the Create a custom Image option, this will launch the instance without loading any CloudyCluster software

When you launch the instance it should look something like the attached picture.

Custom Image Checkbox

Also one other note, you can’t reboot the machine unless you edit the crontab file and comment out the following line as this line is what sets up CC and is what is disabled by the original User Data:

@reboot root /opt/CloudyCluster/srv/ 2>> /opt/CloudyCluster/logs/CheckIfControlNode.stderr

When you want to save your image make sure that you uncomment that line or CloudyCluster will not start up when the image launches as it will still be in add software mode.

Now you can launch the new image


Automate The Process

If you want to be able to automate the process of adding software to the release CloudyCluster AMIs, you can use the builderdash project. The Builderdash project was created to provided a build system, that we use internally to build CloudyCluster releases. It is open sourced so the same methodology can be used to add Software to the Image. The project is available on Github.