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

Avoid unnecessary build of NGF #1681

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

pleshakov
Copy link
Contributor

Proposed changes

Problem:
When building an NGF image, building NGF binary will always happen, even if it's not needed (Docker build target is not local)

Solution:
Fix it by adding a stage for a container that holds CA certs.

Introduced in 799ea76

Closes #1680

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • [ x] I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Release notes

If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.

NONE

Problem:
When building an NGF image, building NGF binary will always happen,
even if it's not needed (Docker build target is not local)

Solution:
Fix it by adding a stage for a container that holds CA certs.

Introduced in 799ea76

Closes nginxinc#1680
@pleshakov pleshakov requested a review from a team as a code owner March 13, 2024 15:56
@github-actions github-actions bot added the bug Something isn't working label Mar 13, 2024
@pleshakov pleshakov merged commit 92c2910 into nginxinc:main Mar 13, 2024
40 checks passed
@pleshakov pleshakov deleted the fix/avoid-unnecessary-build-of-ngf branch March 13, 2024 18:58
amimimor pushed a commit to amimimor/nginx-gateway-fabric that referenced this pull request Apr 3, 2024
Problem:
When building an NGF image, building NGF binary will always happen,
even if it's not needed (Docker build target is not local)

Solution:
Fix it by adding a stage for a container that holds CA certs.

Introduced in 799ea76

Closes nginxinc#1680
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Avoid unnecessary build of NGF
3 participants