Skip to content
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

Adds support for multi-platform linux/amd64 & linux/arm64 docker images #603

Merged
merged 8 commits into from
Jun 14, 2024

Conversation

pschork
Copy link
Contributor

@pschork pschork commented Jun 9, 2024

This change will allow operators to run released docker images on ARM based AWS Gravitron instances as well as M1/2/3 Macs

Multi-platform docker compose builds need to be built + pushed within the same context, so this change consolidates the previous 2-staged built + push flow into a single build + potentially push flow via a PUSH_FLAG env variable that gets set if a push is intended.

Why are these changes needed?

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@pschork pschork marked this pull request as ready for review June 14, 2024 19:55
@pschork pschork requested a review from jianoaix June 14, 2024 19:55
@pschork pschork requested a review from dmanc June 14, 2024 20:21
@pschork pschork force-pushed the pschork/multi-platform-releases branch from fd5e7d5 to 03eea53 Compare June 14, 2024 21:26
.github/workflows/docker-publish.yaml Outdated Show resolved Hide resolved
@@ -24,6 +24,9 @@ services:
build:
context: .
dockerfile: node/cmd/Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add arm images to the other components too?

Copy link
Contributor Author

@pschork pschork Jun 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropping this from this change. Building with docker compose is kludgy and we might be better off using buildx directly. This is also triggering a failure with gitversion that needs more debugging.

@pschork pschork merged commit 7d77786 into master Jun 14, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants