|
75 | 75 | Image ocids and display names can be found on the public [OCI Documentation / Images](https://docs.oracle.com/en-us/iaas/images/) page. The `image_name` property allows you to specify the display |
76 | 76 | name of the image rather than the ocid. There are two ways to do this: |
77 | 77 |
|
78 | | -- specify the entire image name. For example, `Oracle-Linux-8.9-2024.02.26-0` |
79 | | -- specify the un-dated, un-versioned portion of the display name. For example, `Oracle-Linux-8.9`\ |
| 78 | +- Specify the entire image name. For example, `Oracle-Linux-8.9-2024.02.26-0` |
| 79 | +- Specify the un-dated, un-versioned portion of the display name. For example, `Oracle-Linux-8.9`\ |
80 | 80 | Note: for aesthetics, the dashes can be replaced with spaces `Oracle Linux 8.9`. Both ways work, one way is prettier. |
81 | 81 | - Regular Expressions are also supported. For example, `Oracle Linux 8.\d+` will give the latest `Oracle Linux 8.x`\ |
82 | 82 | Note: be careful here. If the regular expression is too broad, the newest image id of the matching set will be returned and might not be of the desired operating system. |
| 83 | +- For an ARM specific `shape` you can add in `-aarch64` to the `image_name`. For example, `Oracle-Linux-8.9-aarch64-2024.02.26-0` or `Oracle Linux 8.\d+-aarch64`\ |
| 84 | + But you don't have to as if a `shape` matches `VM.Standard.A<##>.Flex` then `-aarch64` gets added automatically and `Oracle Linux 8.\d+` will work the same.\ |
| 85 | + [ARM Documentation Here](https://docs.oracle.com/en-us/iaas/Content/Compute/References/arm.htm) |
| 86 | +- **Caution:** Platform images are refreshed regularly. When new images are released, older versions are replaced. The image OCIDs remain available, but when the platform image is replaced, the image OCIDs are no longer returned as part of the platform image list.\ |
| 87 | + [OCI Documentation Here](https://docs.oracle.com/en-us/iaas/tools/ruby/2.21.0/OCI/Core/ComputeClient.html#list_images-instance_method) |
83 | 88 |
|
84 | 89 | If the second option is chosen (providing a portion of the display name), the behavior is to search all display names that match the string provided plus anything that looks like |
85 | 90 | a date, then sort by time created and return the ocid for the newest one. This allows you to always get the latest version of a given image without having to continually update your kitchen.yml files. |
|
0 commit comments