-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to specify platform? #44
Comments
Actually, I think this is the bug I'm running into: |
That's a good one. This is not something that is supported as of now unfortunately, but I can definitely see the need for it. And it should be quite easy to fix too. I've just done a quick half assed solution if you want to try it. Install version The real fix will use a |
The fix in the issue I linked did work Also, just in general, running the pipeline on a different platform than it does in Bitbucket doesn't feel awesome. :) So, I'm going to try your solution now. |
It seems that it is working, and the failure has moved to a similar, but different library, What I don't undetstand is why this isn't happening on Bitbucket Pipelines actual. I also got a bunch of odd errors from a bash script that runs as an early smoke check in the pipeline. I don't see syntax errors in actual bitbucket, so now I'm wondering how the bash version might be different, and why would it only be different when I'm running the same platform, as I didn't see this until I specified the platform. ... Investigating. |
Strange things are happening... 😆 Second run it was back to failing with the same Third run I realized it was restoring an old yarn cache from back when it was running on Apple Silicon, so when changing platform I think I need to kill the cache. Also I realized that I may not have set the platform ENV variable properly. It needs to be set before the |
Bumping the cache version fixed it. (added
|
OK, figured out the other issues, except for the bash syntax thing... But I think it is good to go from the |
Setting platform to a tri-sectional For example, when I set: export PIPELINE_RUNNER_DOCKER_PLATFORM=linux/amd64/v8 I get (added new lines to make it readable)
oooh, it is because images specifically for |
Additionally, I have just found this (see last two comments): So, while I think it is good, and important, for this project to support the |
Additionally, it does appear that setting (e.g. in my .env)
May be all that is needed to control the platform that docker, and thus pipeline runner, use to build. See: Still, again, I think supporting |
@mathieu-lemay When using the latest pre-release with the platform feature, it has a bug where it doesn't work if I do not specify a platform. It should work either way.
|
In a normal docker scenario we can specify a platform for docker to build with:
Is there something similar we can do with the pipeline runner?
In Bitbucket, the pipeline is almost certainly running with
linux/amd64
, and I'd like to be able to run it that way locally on my Mac, even though it isarm64
(Apple silicon). This is what we do when we build docker images on our Macs normally.I am currently getting an error in the
yarn install
phase, whereoptipng-bin
fails to build and the error is hard to understand, but something to do with Rosetta (Apple's Intel emulation/translation layer) and the platform.The text was updated successfully, but these errors were encountered: