microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
362 stars 29 forks source link

cpa verify seg faults on M1 Mac running Darwin #991

Open dnicodemus opened 10 months ago

dnicodemus commented 10 months ago

Please provide us with the following information:

This issue is a: (mark with an x)

Issue description

On Marc, Darwin Kernel Version 23.1.0: M1 Pro Using the following docker image and run command: The cpa verify command appears to run successfully but reports a Seg fault.

Steps to reproduce

  1. unzip/tar the attached file. k8s-offer-azure-vote.bug.tar.gz
  2. cd into k8s-offer-azure-vote created by the pervious step
  3. pull and run the docker image as follows docker pull mcr.microsoft.com/container-package-app:latest docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /Users/davenicodemus/swirl/k8s-offer-azure-vote:/app --entrypoint "/bin/bash" --name cpa-tool mcr.microsoft.com/container-package-app:latest
  4. run cpa verify Screen show below shows the result on my system

Expected behavior [What you expected to happen.] Verify runs w/ no errors Actual behavior [What actually happened.] Verify runs and reports a seg fault (but does appear to succeed)

Screenshots

image

Additional context

cpa buildbundle does produce a bundle, but I am not sure that it's correct. Is there a way to validate it?

howang-ms commented 10 months ago

Hi @dnicodemus It seems not related to the Azure Container Apps service.

dnicodemus commented 10 months ago

Hi @dnicodemus It seems not related to the Azure Container Apps service.

Thanks @howang-ms do you know if this harms the CNAB later in the buildbundle command?

zcahana commented 9 months ago

I came across this on M1 too. According to the Partner Center documentation, this seems to be a known limitation of the tool:

If running the packaging tool manually, Docker needs to be installed a local machine. For more information, see the WSL 2 backend section at Docker documentation for Windows or Linux. This is only supported in Linux/Windows AMD64 machines.