ezsystems / launchpad

CLI tool to bootstrap an eZ Platform project Docker stack | #justcode
https://ezsystems.github.io/launchpad
MIT License
22 stars 26 forks source link

Varnish not working on Apple M1 #102

Open Liquid2Sky opened 3 years ago

Liquid2Sky commented 3 years ago
Q A
Bug report? Maybe
Feature request? If its not a bug...yes
Version 1.9.1
Environment Mac (M1)

I try to get ezlaunchpad running on an Apple M1 and I am aware that Docker is not yet completely "M1 ready". However I think this issue is not related to the Docker compatibility.

Varnish instantly crashes

varnish_1      | Error:
varnish_1      | Running VCC-compiler failed, signal 5
varnish_1      | VCL compilation failed

I think this might be related to Varnish not yet providing ARM packages

YohannsMonnier commented 2 years ago

To make it work for M1 , we have to build it for M1 too (FROM arm64v8/debian:stretch-slim)

The problem is that the build via Dockerfile does not work straightforward then. I tried to re-add some elements in the Dockerfile but the installation of varnish-modules failed with an error on something that should not generate an error.

Would really like to help, as Varnish is the first machine that we need to update, others has to be updated for arm64 :

YohannsMonnier commented 2 years ago

The error I got :

#8 40.84 make[1]: Entering directory '/tmp/varnish-modules-0.15.0'
#8 40.84 Making all in src
#8 40.84 make[2]: Entering directory '/tmp/varnish-modules-0.15.0/src'
#8 40.84   VMODTOOL vcc_bodyaccess_if.c
#8 40.85   File "/usr/share/varnish/vmodtool.py", line 195
#8 40.85     print("ERROR: " + txt, file=sys.stderr)
#8 40.85                                ^
#8 40.85 SyntaxError: invalid syntax
#8 40.85 make[2]: *** [vcc_bodyaccess_if.c] Error 1
#8 40.85 Makefile:1356: recipe for target 'vcc_bodyaccess_if.c' failed
#8 40.85 make[2]: Leaving directory '/tmp/varnish-modules-0.15.0/src'
#8 40.85 make[1]: *** [all-recursive] Error 1
#8 40.85 Makefile:537: recipe for target 'all-recursive' failed
#8 40.85 make[1]: Leaving directory '/tmp/varnish-modules-0.15.0'
#8 40.85 Makefile:448: recipe for target 'all' failed