runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.82k stars 1.06k forks source link

Build a version of Atlantis for ARM architectures #857

Closed soapergem closed 4 days ago

soapergem commented 4 years ago

I'm hoping to run Atlantis on a K8S cluster I have running on several Raspberry Pis. However it doesn't seem like the any of the runatlantis/atlantis images on Docker Hub work on ARM architectures. When I try to install the Helm chart, the pod fails to start with this error:

standard_init_linux.go:211: exec user process caused "exec format error"

Could you publish a version of the Docker image that runs on ARM please? Then I could override image.tag in the Helm chart (e.g. to something like v0.8.2-arm). Thanks.

lkysow commented 4 years ago

Hi Gordon, for now I'd recommend building it yourself. You should be able to check out the code and run

CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -mod=vendor -v -o atlantis .

It will require some modification to our build files to be able to push arm Docker images. I don't think I'll be able to get to this but PRs are welcome.

lkysow commented 4 years ago

Actually, I realized we already have arm releases so you'd just need to package that into a Docker image yourself.

soapergem commented 4 years ago

Thanks for the tip. I just published an ARM-compatible Docker image to Docker Hub using that pre-compiled binary.

Almenon commented 11 months ago

Another reason official docker image for ARM would be nice is that fargate is much cheaper on ARM

https://aws.amazon.com/fargate/pricing/

Almenon commented 11 months ago

Actually looks like there is a official docker image for this already?

https://github.com/runatlantis/atlantis/pkgs/container/atlantis

docker pull ghcr.io/runatlantis/atlantis:v0.27-alpine@sha256:caecbfaf4cadea637cd4213cc7d8de55c20a332735025d9cdf002d689881eaa8