-
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?
ci: Add arm64 makefile targets. #1755
Conversation
| apiVersion: v1 | ||
| fieldPath: metadata.namespace | ||
| image: ghcr.io/fluent/fluent-operator/fluent-operator:v3.5.0 | ||
| image: ghcr.io/fluent/fluent-operator/fluent-operator:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, but this resets the tag to latest on master so that CI passes.
9ab9746 to
e465c94
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See suggestions:
- Some targets where copy past errors and still amd64.
- PHONY should be used https://makefiletutorial.com/#phony
Makefile
Outdated
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should there be . PHONY instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - fixed.
| # 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 comment
The 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 cmd/fluent-watcher/fluentd/Dockerfile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
then should we change the path to cmd/fluent-watcher/fluentd/Dockerfile?
Signed-off-by: Josh Baird <[email protected]>
Co-authored-by: Marco Franssen <[email protected]> Signed-off-by: Josh Baird <[email protected]>
Co-authored-by: Marco Franssen <[email protected]> Signed-off-by: Josh Baird <[email protected]>
Co-authored-by: Marco Franssen <[email protected]> Signed-off-by: Josh Baird <[email protected]>
Co-authored-by: Marco Franssen <[email protected]> Signed-off-by: Josh Baird <[email protected]>
Co-authored-by: Marco Franssen <[email protected]> Signed-off-by: Josh Baird <[email protected]>
Co-authored-by: Marco Franssen <[email protected]> Signed-off-by: Josh Baird <[email protected]>
Signed-off-by: Josh Baird <[email protected]>
ca24dfc to
a82fa47
Compare
Adds
arm64make targets for building arm64 images locally.