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

Provide arm64 build #21

Closed
kirrmann opened this issue Jan 5, 2022 · 8 comments · Fixed by #25
Closed

Provide arm64 build #21

kirrmann opened this issue Jan 5, 2022 · 8 comments · Fixed by #25

Comments

@kirrmann
Copy link

kirrmann commented Jan 5, 2022

As alpine, terragrunt and terraform are available for arm64 it would be useful, if this docker image would also be available for arm64

@ozbillwang
Copy link
Contributor

ozbillwang commented Jan 7, 2022

the pipeline to build for ARM is not stable.

https://github.com/ozbillwang/multi-arch-docker-build

I have implemented a sample multi-arch build repo from a fork repo (it was archived by author) with improvements, but still not stable enough. Currently it is stuck to install ca-certificates in some arch.

#18 6.504 (1/1) Installing ca-certificates (20191127-r7)
#18 6.679 Executing busybox-1.34.1-r3.trigger
#18 6.916 Executing ca-certificates-20191127-r7.trigger
#18 6.939 ERROR: ca-certificates-20191127-r7.trigger: script exited with error 1
#18 6.962 OK: 7 MiB in 17 packages

amd64 is fine, but not arm
image

there are disucssion about this issue, but no fix currently.

Have to put this request on hold.

if the solution works, I can adjust all repos in this group to multiple arch.

@denisa
Copy link

denisa commented Apr 24, 2023

Have there been any progress since January 2022?

@ozbillwang
Copy link
Contributor

ozbillwang commented Apr 24, 2023

Ok, seems its base image hashicorp/terraform is ready for multiple platform.

will take a try

image

@ozbillwang
Copy link
Contributor

@kirrmann

it is ready, pleaes run the test from new Apple chip (M1/M2)

image

@ozbillwang
Copy link
Contributor

ozbillwang commented Apr 25, 2023

@denisa

run a test on ARM as well, wait for the result

@ozbillwang
Copy link
Contributor

ozbillwang commented Apr 25, 2023

My test is fine, but I run on macbook with intel chip

$ docker run -ti --rm --platform "linux/arm64" alpine/terragrunt terraform --version
Terraform v1.4.5
on linux_arm64

$ docker run -ti --rm --platform "linux/arm64" alpine/terragrunt terragrunt --version
terragrunt version v0.45.4

@denisa
Copy link

denisa commented Apr 25, 2023

$ docker run -ti --rm alpine/terragrunt terraform --version
Terraform v1.4.5
on linux_arm64
$ docker run -ti --rm  alpine/terragrunt terragrunt --version 
terragrunt version v0.45.4

on an m1 mac mini.

Seems to be working fine, thanks!

@ozbillwang
Copy link
Contributor

ozbillwang commented Apr 25, 2023

Thanks for the confirmation.

Base image hashicorp/terraform supports four platforms only, and terragrunt itself doesn't support in linux/arm/v6 so I implement with other 3 platforms.

  • linux/arm64
  • linux/amd64
  • linux/386

All good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants