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

Remove functionality to create special buildx Dockerfile #211

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Feb 3, 2025

🗣 Description

This pull request removes the buildx-dockerfile.sh script and related use in our GitHub Actions configuration.

💭 Motivation and context

There is no need to generate a Dockerfile that simply implements the default behavior. We can see the following annotation in GitHub Actions runs that confirms this behavior:

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior: Dockerfile-x#L9
RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

🧪 Testing

Automated tests pass. I also confirmed that we are still seeing the expected platform support on Docker Hub for images created with this branch as can be seen here.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

There is no need to go through this step as the Dockerfile that is
generated simply implements default behavior. This can be seen in the
annotations our GitHub Actions runs show:

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior: Dockerfile-x#L9
RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/
@mcdonnnj mcdonnnj added improvement This issue or pull request will add or improve functionality, maintainability, or ease of use github-actions Pull requests that update GitHub Actions code labels Feb 3, 2025
@mcdonnnj mcdonnnj requested a review from a team February 3, 2025 08:20
@mcdonnnj mcdonnnj self-assigned this Feb 3, 2025
@mcdonnnj mcdonnnj added the kraken 🐙 This pull request is ready to merge during the next Lineage Kraken release label Feb 7, 2025
@mcdonnnj mcdonnnj added this pull request to the merge queue Feb 7, 2025
Merged via the queue into develop with commit dfeb249 Feb 7, 2025
17 checks passed
@mcdonnnj mcdonnnj deleted the improvement/remove_buildx_scripting branch February 7, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github-actions Pull requests that update GitHub Actions code improvement This issue or pull request will add or improve functionality, maintainability, or ease of use kraken 🐙 This pull request is ready to merge during the next Lineage Kraken release
Projects
Development

Successfully merging this pull request may close these issues.

3 participants