Skip to content

Commit 979ddcd

Browse files
Default Build to multi-platform amd64 and arm64 (#1557)
* add linux/arm64 as a platform to build the operator by default * set platforms in dockerfile * use tag instead of sha * update tag version * update base image to latest
1 parent 1e5e544 commit 979ddcd

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Setup defaults for build arguments
2-
ARG PLATFORMS=linux/amd64
2+
ARG PLATFORMS=linux/amd64,linux/arm64
33

44
# Use distroless as minimal base image to package the manager binary
55
# Refer to https://github.com/GoogleContainerTools/distroless for more details
6-
# This sha relates to ubi minimal version 8.10-1753676782, which is tagged as 8.10 and latest as of Jul 28, 2025
7-
ARG BASE_IMAGE=registry.access.redhat.com/ubi8/ubi-minimal@sha256
8-
ARG BASE_IMAGE_VERSION=88d40445bdf35b3b848371dec918b7d6ed0ef0e03a4e0f510c10be536e4aa1c9
6+
# This sha relates to ubi minimal version 8.10-1755105495, which is tagged as 8.10 and latest as of Aug 17, 2025
7+
ARG BASE_IMAGE=registry.access.redhat.com/ubi8/ubi-minimal
8+
ARG BASE_IMAGE_VERSION=8.10-1755105495
99

1010
# Build the manager binary
1111
FROM golang:1.24.2 AS builder

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ docker-push: ## Push docker image with the manager.
156156
# Docker-buildx is used to build the image for multiple OS/platforms
157157
# IMG is a mandatory argument to specify the image name
158158
# Defaults:
159-
# Build Platform: linux/amd64
160-
# Build Base OS: registry.access.redhat.com/ubi8/ubi-minimal@sha256
161-
# Build Base OS Version: 88d40445bdf35b3b848371dec918b7d6ed0ef0e03a4e0f510c10be536e4aa1c9 (corresponds to tag 8.10-1753676782)
159+
# Build Platform: linux/amd64,linux/arm64
160+
# Build Base OS: registry.access.redhat.com/ubi8/ubi-minimal
161+
# Build Base OS Version: 8.10-1755105495
162162
# Pass only what is required, the rest will be defaulted
163163
# Setup defaults for build arguments
164-
PLATFORMS ?= linux/amd64
165-
BASE_IMAGE ?= registry.access.redhat.com/ubi8/ubi-minimal@sha256
166-
BASE_IMAGE_VERSION ?= 88d40445bdf35b3b848371dec918b7d6ed0ef0e03a4e0f510c10be536e4aa1c9
164+
PLATFORMS ?= linux/amd64,linux/arm64
165+
BASE_IMAGE ?= registry.access.redhat.com/ubi8/ubi-minimal
166+
BASE_IMAGE_VERSION ?= 8.10-1755105495
167167

168168
docker-buildx:
169169
@if [ -z "${IMG}" ]; then \

0 commit comments

Comments
 (0)