Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Add ARM support for app_server image #183

Open
Clex1o1 opened this issue Jul 28, 2022 · 1 comment
Open

Add ARM support for app_server image #183

Clex1o1 opened this issue Jul 28, 2022 · 1 comment

Comments

@Clex1o1
Copy link

Clex1o1 commented Jul 28, 2022

PHP Version

7.4

Shopware Version

6.4

Expected behaviour

Running shopware locally with docker on my M1 Mac.

Actual behaviour

While staring the docker setup on Mac with M1 (ARM) processor the app_server container stops immediately with this error message:

-> Executing /opt/docker/provision/entrypoint.d/05-permissions.sh
-> Executing /opt/docker/provision/entrypoint.d/20-apache.sh
runtime: failed to create new OS thread (have 2 already; errno=22)
fatal error: newosproc

runtime stack:
runtime.throw(0x6430dc, 0x9)
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/panic.go:596 +0x95
runtime.newosproc(0xc42002a000, 0xc42003a000)
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/os_linux.go:163 +0x18c
runtime.newm(0x650dd0, 0x0)
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:1628 +0x137
runtime.main.func1()
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:126 +0x36
runtime.systemstack(0x75bb00)
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:327 +0x79
runtime.mstart()
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:1132

goroutine 1 [running]:
runtime.systemstack_switch()
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:281 fp=0xc420026788 sp=0xc420026780
runtime.main()
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:127 +0x6c fp=0xc4200267e0 sp=0xc420026788
runtime.goexit()
	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4200267e8 sp=0xc4200267e0

After some research it seems it is an error with the container architecture of this image: webdevops/php-apache.
I tried to add platform: linux/amd64 in the docker-compose.yml and docker-compose.override.yml. Also tried to add FROM --platform=linux/amd64 ${IMAGE_PHP}:${IMAGE_PHP_VERSION} in the dockerfile for the app container. But this is not working.

How to reproduce

On MacOS with M1 or newer processors the ./psh.phar docker:start command runs success fully but the app_server container stops always.

@alxshell
Copy link

alxshell commented Aug 28, 2022

Hi guys... is there a fix on the way? There is also a duplicate #179 open since april. Maybe you could at least provide a quickfix? That would be great. Thx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants