Creating a Custom Image
To create a custom CloudyCluster Image with additional software or libraries.
When using a CloudyCluster Custom Image you must first:
- Subscribe to CloudyCluster in the GCP Marketplace
- Follow the steps to customize the Image before you launch CloudyCluster the normal way.
Complete the following steps to locate the CloudyCluster Image Name of the instance to base the custom ami with.
- Navigate to the CloudyCluster GCP Marketplace.
- Enable CloudyCluster
- 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
- Navigate to the launch configuration from the GCP marketplace
- Select the Create a custom Image option, this will launch the instance without loading any CloudyCluster software
note, To reboot during software install you will want to remove the following line from the crontab (This is what is disabled by the original checkbox):
@reboot root /opt/CloudyCluster/srv/CheckIfControlNode.py 2>> /opt/CloudyCluster/logs/CheckIfControlNode.stderr
note, To enable CloudyCluster launching on the next reboot you should edit the crontab file and un-comment that line.
Now you can launch the new image from the console (make sure you use a SA with the appropriate permissions)
Automate The Process
If you want 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.