terragrunt icon indicating copy to clipboard operation
terragrunt copied to clipboard

Provide arm64 build

Open kirrmann opened this issue 3 years ago • 1 comments

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

kirrmann avatar Jan 05 '22 14:01 kirrmann

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.

ozbillwang avatar Jan 07 '22 03:01 ozbillwang

Have there been any progress since January 2022?

denisa avatar Apr 24 '23 00:04 denisa

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

will take a try

image

ozbillwang avatar Apr 24 '23 05:04 ozbillwang

@kirrmann

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

image

ozbillwang avatar Apr 25 '23 05:04 ozbillwang

@denisa

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

ozbillwang avatar Apr 25 '23 09:04 ozbillwang

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

ozbillwang avatar Apr 25 '23 09:04 ozbillwang

$ 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!

denisa avatar Apr 25 '23 15:04 denisa

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.

ozbillwang avatar Apr 25 '23 23:04 ozbillwang