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

Make growthbook image multi-platform #1533

Merged
merged 7 commits into from Aug 7, 2023
Merged

Make growthbook image multi-platform #1533

merged 7 commits into from Aug 7, 2023

Conversation

tzjames
Copy link
Collaborator

@tzjames tzjames commented Aug 2, 2023

Features and Changes

According to https://github.com/depot/build-push-action platforms takes a csv list of platforms to build for. And according to https://depot.dev/docs/guides/arm-containers#what-about-multi-platformmulti-architecture-containers depot can create a multi-platform image with zero emulation. This should hopefully then allow our same docker compose file to work whether it is on Apple Silicon or not.

Testing

As this only gets triggered during the deploy process, I created a new manual workflow. The image got created with multiplatform tag. Then modified docker-compose.yml to use :multiplatform instead of :latest. Then try docker-compose up -d on Apple Silicon. See it working.

@tzjames tzjames changed the title Make growthbook image multi-platform Test make growthbook image multi-platform Aug 2, 2023
@github-actions
Copy link

github-actions bot commented Aug 2, 2023

Deploy preview for docs ready!

✅ Preview
https://docs-1bmkyhvxy-growthbook.vercel.app

Built with commit 41fc096.
This pull request is being automatically deployed with vercel-action

@bttf
Copy link
Collaborator

bttf commented Aug 2, 2023

Looks like this has been tested and confirmed working?

@tzjames
Copy link
Collaborator Author

tzjames commented Aug 2, 2023

Looks like this has been tested and confirmed working?

Yes on Apple Silicon I have confirmed it works. I don't have another system handy to test it out on for other platforms. It would probably be good to double check.

@bttf
Copy link
Collaborator

bttf commented Aug 2, 2023

Looks like this has been tested and confirmed working?

Yes on Apple Silicon I have confirmed it works. I don't have another system handy to test it out on for other platforms. It would probably be good to double check.

@jdorn Has a non-Apple machine IIRC

@tzjames tzjames changed the title Test make growthbook image multi-platform Make growthbook image multi-platform Aug 5, 2023
@tzjames tzjames merged commit 4b45c77 into main Aug 7, 2023
4 checks passed
@tzjames tzjames deleted the ji/multiplatform branch August 7, 2023 15:42
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.

None yet

3 participants