Customize a published SUNK image
You can customize an existing SUNK image with a Dockerfile by following these steps.- Browse the container registry for a published SUNK image that closely matches your requirements.
-
Create a Dockerfile using the
FROMdirective to specify the selected base image. For example: - Add the needed software and dependencies by extending the Dockerfile with custom instructions.
- To create a custom image, build the Dockerfile.
Use custom images
After you customize a SUNK image with a Dockerfile, you must define the image in the appropriate section of thevalues.yaml file, depending on the type of node the image targets. This process is the same for all Slurm node types, including the Node Controller and database. The following examples demonstrate how to define SUNK images for a compute node and for a login node.
Define a custom compute node image
Define custom images for compute nodes in thecompute.nodes.<node-type> section of the values.yaml file.
Specify the custom image, including the repository and tag, for each compute node definition in compute.nodes, as in the following example:
Define a custom login node image
Define custom images for login nodes in thelogin.image section of the values.yaml file.
Specify the custom image, including the repository and tag, in login.image, as in the following example: