Hi I have a question about arm64 docker compatibil...
# docker
g
Hi I have a question about arm64 docker compatibility for M1 macs. I guess this is a bleeding edge topic and milage may vary 🙂 We have our own Spryker docker solution which we are adapting for M1 macs and have hit a problem with
node-sass
for the Zed asset building. Apparently there are no prebuilt arm64 bindings (https://github.com/sass/node-sass/releases) and it is not possible to switch to another version of sass due to coupling via
orxy-for-zed
I see there is experimental work on the Spryker DockerSDK (https://github.com/spryker/docker-sdk/pull/225) for M1 but do not see any changes for node or sass so wondering if anyone has any insights on how this is working for others?
a
I always run in Out of Memory error during composer installation with this experimental branch. But I heard for some people it works fine
g
That is not something I would expect, but guess that is why this PR is experimental 🧪
f
@adorable-piano-19015 Memory leaks are a general issue with the m1, it’s basically something that apple needs to fix (hopefully soon). I’ve only used the M1 for a few days, so prolly didn’t have the chance to encounter any memory issues just yet. While spryker does work on the M1, it’s unfortunately slower than my old intel MacBook. With M1 Max + 32gb I’m seeing stuff like 5-10s TTFB on catalog page and 16 MINUTES to do yves frontend build. In general anything that touches a lot of files on the containers is multiple times slower than on my old intel. Fingers crossed that more improvements will be introduced to that experimental branch cuz right now it’s not looking too good.
👍 1
@gentle-vegetable-74963 Just tried doing
console frontend:zed:build
and got a similar error (plus many others).
g
😞 fingers crossed that we will see progress soon.
a
Maybe you could finish the installation because you have 32gb. No chance with my 16gb model. Anyway developing with this kind of performance is not possible with M1 right now. According to this comment official support is planned for Q4. Not sure if the experimental branch is related to this. https://github.com/spryker/docker-sdk/issues/192#issuecomment-950894157
f
I know that some people managed to get it installed on a 16gb 13" M1, but a workaround was needed:
Modify line 17 of *docker/bin/sdk/runtime/wait.sh* so that the command does not exit when the wait time is over
So instead of
&& exit 1
is should be
&& break
. Maybe that can be of help? And you can always go for 32gb instead of 16gb. 16gb is really not enough for a proper spryker dev machine these days, regardless if it’s M1 or not….
a
That workaround sadly does not help, still receiving this error
😢 1
But I would not say 16GB is not enough. I am developing with a Windows Desktop which also has 16GB and it works like a charm...
p
Heyhey, the comment with the Q4 is still valid and the goal. But I can not tell you any release-date yet 🤞
🤞 1
👍 2
j
I’m not running into issues on an M1 but I’m facing different issues, for example the old
node-gyp
version which is brought in by
node-sass
. Since node-sass is depcrecated and node-gyp is 5 versions behind. Are there any plans to drop support for this? Do we have a work-around to build zed without oryx for zed?
p
Heyhey, just a small update: it was not finished Q4, current goal is Q1 😢
😢 3