Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
flightlesstux opened this issue Jun 11, 2024 · 3 comments
Closed

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

flightlesstux opened this issue Jun 11, 2024 · 3 comments
Assignees
Labels
bugfix Bug needing a fix

Comments

@flightlesstux
Copy link

flightlesstux commented Jun 11, 2024

📝 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
Copy link

Crypto89 commented Jun 28, 2024

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

@seantrane
Copy link

Same. I had high hopes for this solution. But typing tofu --version and seeing OpenTofu v1.8.4 on linux_amd64, on an arm64 machine, is really alarming. Using --platform option only yields error (no matching manifest for aarch64/arm64), making this solution not fit for production usage.

@ChristophShyper ChristophShyper self-assigned this Jan 29, 2025
@ChristophShyper
Copy link
Member

ChristophShyper commented Jan 29, 2025

Hello, sorry for answering so late.
I was not aware docker was emulating it all the time on my computer.
But I think it's fixed now:

Image

It's been fixed with #2546

@ChristophShyper ChristophShyper added the bugfix Bug needing a fix label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bug needing a fix
Development

Successfully merging a pull request may close this issue.

4 participants