devops-infra / docker-terragrunt

Dockerized framework with Terraform, Terragrunt, Python, Make, Docker, Git, and all needed components to easily manage cloud infrastructure.
https://christophshyper.github.io/
MIT License
149 stars 33 forks source link

aws-ot-latest not running on EC2 aarch64 #2201

Open flightlesstux opened 3 months ago

flightlesstux commented 3 months ago

:memo: Brief description

The devopsinfra/docker-terragrunt:aws-ot-latest is not running on aarch64 based ec2. The ec2 type is: t4g.medium

[root@ip-10-xxx-xxx-xxx ~]# uname -a
Linux ip-10-xxx-xxx-xxx.eu-central-1.compute.internal 6.1.92-99.174.amzn2023.aarch64 #1 SMP Tue Jun  4 15:43:17 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
[root@ip-10-xxx-xxx-xxx ~]# docker run -it devopsinfra/docker-terragrunt:aws-ot-latest sh
exec /usr/bin/sh: exec format error

[root@ip-10-xxx-xxx-xxx ~]# docker inspect devopsinfra/docker-terragrunt:aws-ot-latest --format '{{.Os}}/{{.Architecture}}'
linux/arm64
[root@ip-10-xxx-xxx-xxx ~]# docker run --rm -it --entrypoint /bin/bash devopsinfra/docker-terragrunt:aws-ot-latest
exec /bin/bash: exec format error

The image running on Apple M based chips. I've tested on M2 Air and M3 Pro without any kind of issue.

Crypto89 commented 3 months ago

It seems that all the arm64 images are only tagged arm64, but are not actually build on arm64.

docker run --rm -it --platform linux/arm64 devopsinfra/docker-terragrunt:tf-1.8.5-tg-0.59.5 uname -m
x86_64

It will still work on AS chips because of emulation. but it's not running natively