question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

releng - support arm64 docker images

See original GitHub issue

Describe the bug Docker container fails to run policies on ARM EC2 instance type

To Reproduce

  1. Launch an arm instance such as m6g.large

  2. Run the following

    docker pull cloudcustodian/c7n:0.9.4.0
    docker run \
      --rm \
      -e AWS_DEFAULT_REGION=us-west-2 \
      -w "/opt/custodian" \
      "cloudcustodian/c7n:0.9.4.0" \
      run \
      --output-dir "output" \
      --region us-west-2 policy_test.yml
    

    Returns

    standard_init_linux.go:211: exec user process caused "exec format error"
    

Expected behavior A clear and concise description of what you expected to happen.

Background (please complete the following information):

  • OS: arm architecture on m6g.large
  • Python Version: container python
  • Custodian Version: 0.9.4
  • Cloud Provider: aws
  • Policy: N/A
  • Traceback: See above
  • custodian version --debug output: see container

Additional context Works if I switch back to x64 architecture using m5.large

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kapiltcommented, Aug 1, 2021

grpc now supports arm.

1reaction
kapiltcommented, Sep 22, 2021

i thought this issue was handy re producing multi-arch builds within github actions https://github.com/actions/cache/issues/260

looking through tools/dev/dockerpkg.py it seems like we should be able to just replace the guts of build_image and push_image with subprocess calls to buildx

Read more comments on GitHub >

github_iconTop Results From Across the Web

T272500 Create arm64 image variants of releng/dev-images ...
What I've tried: modified docker-pkg to specify platform=arrm64; Built my own wikimedia-stretch image with a crude Dockerfile. FROM arm64v8/ ...
Read more >
Explore Docker's Container Image Repository
A minimal Docker image based on Alpine Linux with a complete package index and only 5 MB in size! Linux. x86-64. ARM. ARM...
Read more >
Using Docker Hub's public registry for CI/CD builds - An ONAP ...
It offers seamless support for multi-arch images through fat manifest ... would use the same jjb templates but be required to run on...
Read more >
Using DockerHub in Akraino Edge Stack & Other Linux ...
Figure 1: Docker registry storing amd64, arm64 images and their fat ... to Docker Hub is done through LF scripts (see releng-global-jjb for ......
Read more >
SEBA on ARM - porting and upstreaming work - Akraino Wiki
Add support for ARM64 for the CORD Docker images ... Also, since Opencord uses LF tools (releng-global-jjb and releng-common-packer), ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found