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
When you launch the instance it should look something like the attached picture.
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/CheckIfControlNode.py 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.