99## Building Images
1010
1111The build [ prerequisites] ( ../capi.md#prerequisites ) for using ` image-builder ` for
12- building OCI images are managed by running:
12+ building OCI images are managed by running the following command from images/capi directory.
1313
1414``` bash
1515make deps-oci
@@ -52,7 +52,7 @@ Create a file with the following contents and name it as `oci.json`
5252{
5353 "compartment_ocid" : " Fill compartment OCID here" ,
5454 "subnet_ocid" : " Fill Subnet OCID here" ,
55- "availability_domain" : " Fill Availbility Domain here"
55+ "availability_domain" : " Fill Availability Domain here"
5656}
5757```
5858
@@ -61,3 +61,23 @@ Create a file with the following contents and name it as `oci.json`
6161``` bash
6262PACKER_VAR_FILES=oci.json make build-oci-oracle-linux-8
6363```
64+
65+ #### Build an Arm based image
66+
67+ Building an Arm based image requires some overrides to use the correct installation files . An example for an
68+ ` oci.json ` file for Arm is shown below. The parameters for containerd, crictl and kubernetes
69+ has to point to the corresponding URL for Arm. The containerd SHA can be changed appropriately, the containerd version
70+ is defined in images/capi/packer/config/containerd.json.
71+
72+ ``` json
73+ {
74+ "compartment_ocid" : " Fill compartment OCID here" ,
75+ "subnet_ocid" : " Fill Subnet OCID here" ,
76+ "availability_domain" : " Fill Availability Domain here" ,
77+ "shape" : " VM.Standard.A1.Flex" ,
78+ "containerd_url" : " https://github.com/containerd/containerd/releases/download/v{{user `containerd_version`}}/cri-containerd-cni-{{user `containerd_version`}}-linux-arm64.tar.gz" ,
79+ "crictl_url" : " https://github.com/kubernetes-sigs/cri-tools/releases/download/v{{user `crictl_version`}}/crictl-v{{user `crictl_version`}}-linux-arm64.tar.gz" ,
80+ "kubernetes_rpm_repo" : " https://packages.cloud.google.com/yum/repos/kubernetes-el7-aarch64" ,
81+ "containerd_sha256" : " 9ac616b5f23c1d10353bd45b26cb736efa75dfef31a2113baff2435dbc7becb8"
82+ }
83+ ```
0 commit comments