-
Notifications
You must be signed in to change notification settings - Fork 307
ci: Add arm64 makefile targets. #1755
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
base: master
Are you sure you want to change the base?
Changes from all commits
73c45e7
335fb47
d9d53dd
f11e821
ae4704c
71389ee
72d7e04
484a96a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,37 +117,56 @@ run: manifests generate fmt vet ## Run a controller from your host. | |
| go run cmd/fluent-manager/main.go | ||
|
|
||
| # Build amd64/arm64 Fluent Operator container image | ||
| .PHONY: build-op | ||
| build-op: | ||
| docker buildx build --push --platform linux/amd64,linux/arm64 -f cmd/fluent-manager/Dockerfile . -t ${FO_IMG} | ||
|
|
||
| # Build amd64/arm64 Fluent Bit container image | ||
| .PHONY: build-fb | ||
| build-fb: prepare-build | ||
| docker buildx build --push --platform linux/amd64,linux/arm64 -f cmd/fluent-watcher/fluentbit/Dockerfile . -t ${FB_IMG} | ||
|
|
||
| .PHONY: build-fb-debug | ||
| build-fb-debug: prepare-build | ||
| docker buildx build --push --platform linux/amd64,linux/arm64 -f cmd/fluent-watcher/fluentbit/Dockerfile.debug . -t ${FB_IMG_DEBUG} | ||
|
|
||
| # Build all amd64 docker images | ||
| .PHONY: build-amd64 | ||
| build-amd64: build-op-amd64 build-fb-amd64 build-fd-amd64 | ||
|
|
||
| # Build all arm64 docker images | ||
| .PHONY: build-arm64 | ||
| build-arm64: build-op-arm64 build-fb-arm64 build-fd-arm64 | ||
joshuabaird marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Build amd64 Fluent Operator container image | ||
| .PHONY: build-op-amd64 | ||
| build-op-amd64: | ||
joshuabaird marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| docker build --platform=linux/amd64 -f cmd/fluent-manager/Dockerfile . -t ${FO_IMG} | ||
|
|
||
| # Build arm64 Fluent Operator container image | ||
| .PHONY: build-op-amd64 | ||
| build-op-amd64: | ||
joshuabaird marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| docker build --platform=linux/arm64 -f cmd/fluent-manager/Dockerfile . -t ${FO_IMG} | ||
|
|
||
| # Build amd64 Fluent Bit container image | ||
| .PHONY: build-fb-amd64 | ||
| build-fb-amd64: | ||
| docker build --platform=linux/amd64 -f cmd/fluent-watcher/fluentbit/Dockerfile . -t ${FB_IMG} | ||
|
|
||
| # Build arm64 Fluent Bit container image | ||
| .PHONY: build-fb-arm64 | ||
| build-fb-arm64: | ||
| docker build --platform=linux/arm64 -f cmd/fluent-watcher/fluentbit/Dockerfile . -t ${FB_IMG} | ||
|
|
||
| # Build amd64 Fluentd container image | ||
| .PHONY: build-fd-amd64 | ||
| build-fd-amd64: | ||
| docker build --platform=linux/amd64 -f cmd/fluent-watcher/fluentd/Dockerfile.amd64 . -t ${FD_IMG} | ||
|
|
||
| build-fd-arm64-base: prepare-build | ||
| docker buildx build --push --platform linux/arm64 -f cmd/fluent-watcher/fluentd/Dockerfile.arm64.base . -t ${FD_IMG_BASE} | ||
|
|
||
| # Use docker buildx to build arm64 Fluentd container image | ||
| build-fd-arm64: prepare-build | ||
| docker buildx build --push --platform linux/arm64 -f cmd/fluent-watcher/fluentd/Dockerfile.arm64.quick . -t ${FD_IMG}${ARCH} --build-arg ${FD_IMG_BASE} --build-arg ${FD_IMG_BASE_TAG} | ||
| # Build arm64 Fluentd container image | ||
| .PHONY: build-fd-arm64 | ||
| build-fd-arm64: | ||
| docker build --platform=linux/arm64 -f cmd/fluent-watcher/fluentd/Dockerfile.amd64 . -t ${FD_IMG} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we actually have the fluentd dockerfile for arm64 or amd64? only see There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use the same Dockerfile for both architectures. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. then should we change the path to |
||
|
|
||
| # Prepare for arm64 building | ||
| prepare-build: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.