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

Fix: Let Docker image be built correctly for non-amd64 platforms #686

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Tenzer
Copy link

@Tenzer Tenzer commented May 30, 2023

When building the Docker image on a platform such as arm64, the generated binary is instead located inside the /go/src/terraform-docs/bin/linux-arm64/ folder, meaning the second stage of the Docker image build fails.

This fixes that.

I have:

  • Read and followed terraform-docs' [contribution process].
  • All tests pass when I run make test.

How has this code been tested

I have built the Docker image on an arm64 platform and verified that the terraform-docs binary inside of it is built for the current platform.

When building the Docker image on a platform such as arm64, the generated
binary is instead located inside the `/go/src/terraform-docs/bin/linux-arm64/`
folder, meaning the second stage of the Docker image build fails.

This fixes that.

Signed-off-by: Jeppe Fihl-Pearson <[email protected]>
@khos2ow khos2ow added the docker label Dec 18, 2023
@khos2ow khos2ow added this to In progress in v0.17 via automation Dec 18, 2023
@khos2ow khos2ow removed this from In progress in v0.17 Dec 19, 2023
Signed-off-by: Brittan DeYoung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants