releng - support arm64 docker images
See original GitHub issueDescribe the bug Docker container fails to run policies on ARM EC2 instance type
To Reproduce
-
Launch an arm instance such as m6g.large
-
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:
- Created 3 years ago
- Comments:11 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
grpc now supports arm.
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