Skip to content

Docker builder time exploses #6911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
juldrixx opened this issue Mar 10, 2025 · 1 comment
Open

Docker builder time exploses #6911

juldrixx opened this issue Mar 10, 2025 · 1 comment
Labels
language/go Issue is related to a Go operator project

Comments

@juldrixx
Copy link

Bug Report

What did you do?

Upgraded to 1.39.1 of operator-sdk (go).

What did you expect to see?

Same building time for docker.

What did you see instead? Under which circumstances?

Increase of time from 15mins to 50mins of build.

Environment

Operator type:

/language go

Kubernetes cluster type:

$ operator-sdk version

1.39.1

$ go version (if language is Go)

1.24.1

Possible Solution

Rollback change introduced in 1.34.0

Additional context

I made the change introduced in 1.34.0 and the building time of the docker image increased from 15mins before to 50mins after.
The pain point is on this line: RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -o manager cmd/main.go

@openshift-ci openshift-ci bot added the language/go Issue is related to a Go operator project label Mar 10, 2025
@acornett21
Copy link
Contributor

Hi @juldrixx Are you interested in mult-arch builds? If so the make docker-buildx will build all architectures for you. If you only want single arch run make docker-build. The time increase makes sense, since the bug was only building on the plaftrom running the make command, instead of building all architectures in the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language/go Issue is related to a Go operator project
Projects
None yet
Development

No branches or pull requests

2 participants