[build] Create aarch64 ubi image (#212156)

Adds an arm64 build of Kibana's UBI container image. Previously we were
only producing x64 images.

https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/5587

```
[jon@mbpkbn1]~/Development/kibana-main% docker load < ~/Downloads/kibana-ubi-9.1.0-SNAPSHOT-docker-image-aarch64.tar.gz
becc66b2b253: Loading layer  62.16MB/62.16MB
6f69a9a77976: Loading layer  1.206GB/1.206GB
0b917a273a43: Loading layer  26.62kB/26.62kB
322107c2fc83: Loading layer  20.34MB/20.34MB
9a6dd2c34def: Loading layer  33.79kB/33.79kB
5f70bf18a086: Loading layer  1.024kB/1.024kB
b90798c7b5c3: Loading layer  2.048kB/2.048kB
3ab9ee9e9ffd: Loading layer  4.096kB/4.096kB
c5c0bde09855: Loading layer  20.48kB/20.48kB
c23cb7d212ce: Loading layer   2.56kB/2.56kB
fdb0e39eee64: Loading layer  222.2kB/222.2kB
a6db60f58ac6: Loading layer  16.38kB/16.38kB
412db844287e: Loading layer  6.144kB/6.144kB
Loaded image: docker.elastic.co/kibana/kibana-ubi:9.1.0-SNAPSHOT
[jon@mbpkbn1]~/Development/kibana-main% docker run -it --rm docker.elastic.co/kibana/kibana-ubi:9.1.0-SNAPSHOT
...
Native global console methods have been overridden in production environment.
[2025-02-24T16:26:20.580+00:00][INFO ][root] Kibana is starting
[2025-02-24T16:26:20.613+00:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
[2025-02-24T16:26:22.997+00:00][INFO ][plugins-service] The following plugins are disabled: "cloudChat,cloudExperiments,cloudFullStory,dataUsage,investigateApp,investigate,profilingDataAccess,profiling,searchHomepage,securitySolutionServerless,serverless,serverlessObservability,serverlessSearch".
[2025-02-24T16:26:23.046+00:00][INFO ][http.server.Preboot] http server running at http://0.0.0.0:5601
```
This commit is contained in:
Jon 2025-02-24 14:13:57 -06:00 committed by GitHub
parent 837c76105e
commit c14a77455d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -23,6 +23,7 @@ download "kibana-$FULL_VERSION-docker-image-aarch64.tar.gz"
download "kibana-cloud-$FULL_VERSION-docker-image.tar.gz"
download "kibana-cloud-$FULL_VERSION-docker-image-aarch64.tar.gz"
download "kibana-ubi-$FULL_VERSION-docker-image.tar.gz"
download "kibana-ubi-$FULL_VERSION-docker-image-aarch64.tar.gz"
download "kibana-wolfi-$FULL_VERSION-docker-image.tar.gz"
download "kibana-wolfi-$FULL_VERSION-docker-image-aarch64.tar.gz"

View file

@ -139,6 +139,12 @@ export const CreateDockerUBI: Task = {
context: false,
image: true,
});
await runDockerGenerator(config, log, build, {
architecture: 'aarch64',
baseImage: 'ubi',
context: false,
image: true,
});
},
};