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

build images for amd64 and arm64 platform (for Apple Silicon, M1, M2) #161

Conversation

albertborsos
Copy link
Contributor

@albertborsos albertborsos commented Apr 8, 2023

resolves #129
resolves #148

I tested it on Docker Hub, you can try the built images with: albertborsos/yii2-php:8.0-apache

Images on Docker Hub: https://hub.docker.com/r/albertborsos/yii2-php/tags?page=1

You can check the final builds here: https://github.com/albertborsos/yii2-docker/actions/runs/4646430952

@albertborsos
Copy link
Contributor Author

@schmunk42 I moved your updates from yii-docker to this PR. Thanks for your work!

@schmunk42 schmunk42 merged commit 4393ff9 into yiisoft:master Apr 13, 2023
18 checks passed
@schmunk42
Copy link
Contributor

Thank you!

@michaelarnauts
Copy link

Not sure if this is related, but since this merge (and the newly published images), I can't seem to get an image from dockerhub.

$ docker pull yiisoftware/yii2-php:8.2-apache
8.2-apache: Pulling from yiisoftware/yii2-php
no matching manifest for linux/amd64 in the manifest list entries

@schmunk42
Copy link
Contributor

Meh, same here: yiisoft/yii-docker#34

I am looking into it...

@schmunk42
Copy link
Contributor

@michaelarnauts

Should be fixed for amd64, but arm64 is gone :(
I created a tag to re-add them.

Underlying issue: docker/bake-action#58

@albertborsos
Can an image with a different arch now be added in a push to Docker Hub?

@michaelarnauts
Copy link

awesome, thanks!

@albertborsos
Copy link
Contributor Author

I tried it with with intel and silicon CPU-s, both works with my albertborsos/yii2-php images, which contains my first commit only.

So if we build and push it together, it works.

@schmunk42
Copy link
Contributor

What do you guys think about this solution?
yiisoft/yii-docker#34 (comment)

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.

yiisoftware/yii2-php:7.4-fpm + mac m1 architecture Will docker-yii2 Support arm devices?
3 participants