-
Notifications
You must be signed in to change notification settings - Fork 143
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
Dockerfile, Makefile: make CGO_ENABLED configurable #1382
Conversation
/cc @zdtsw |
/cc @jackdelahunt |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: asanzgom The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Given that this has been enabled for a long time, and there are FIPS-related implications (not sure how much we care about those right now), I wonder if maybe it would be preferable to have a build arg for it that defaults to enabled, but can easily be set by the person building it to turn it off? |
I'm wondering what the implications are if it is not used in CI but for local builds only AFAIK. |
preferably, to add support : switch on and off with args. |
Implemented |
The commit a107703 ("feat(fips): enable GO_ENABLED in build (opendatahub-io#1001)") enabled CGO which makes problems for builders on non-x86 platforms. Make it as an in the Dockerfile keeping default the same (enabled), but make it possible to override with either environment (`export CGO_ENABLED=0`) or make (`make CGO_ENABLED=0 image-build`) Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## incubation #1382 +/- ##
=============================================
Coverage ? 18.91%
=============================================
Files ? 30
Lines ? 3399
Branches ? 0
=============================================
Hits ? 643
Misses ? 2687
Partials ? 69 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
2d94349
into
opendatahub-io:incubation
The commit
a107703 ("feat(fips): enable GO_ENABLED in build (#1001)")
enabled CGO which makes problems for builders on non-x86 platforms.
Make it as an in the Dockerfile keeping default the same (enabled),
but make it possible to override with either environment
(
export CGO_ENABLED=0
) or make (make CGO_ENABLED=0 image-build
)Description
How Has This Been Tested?
Screenshot or short clip
Merge criteria