-
Notifications
You must be signed in to change notification settings - Fork 523
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 #216 added support for user with x509 enabled #294
Merged
mfridman
merged 7 commits into
pressly:master
from
arulrajnet:fix-216-support-for-x509-enabled-user
Dec 12, 2021
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
bb7e97a
Fix #216 added support for user with x509 enabled
arulrajnet f6910a8
#216 readme updated for ssl
arulrajnet 9fb61f8
#216 review comment addressed
arulrajnet 7318c04
#216 review comment addresses
arulrajnet a3b1d7a
#216 review comment addressed
arulrajnet f10f0a5
#216 CGO_ENABLED=0 in Dockerfile.local
arulrajnet ab35d4c
removed unwanted files
arulrajnet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM golang:1.17-buster@sha256:3e663ba6af8281b04975b0a34a14d538cdd7d284213f83f05aaf596b80a8c725 as builder | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
RUN CGO_ENABLED=0 make dist | ||
|
||
FROM scratch AS exporter | ||
COPY --from=builder /src/bin/ / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@mfridman Added
CGO_ENABLED=0
to be consistant with release build.Refer https://github.com/pressly/goose/blob/master/.goreleaser.yml#L9
Without that, it's not working with alpine based docker images.
I have tested with this
Giving following error if the image is alpine. The same binary is working perfect in debian based images.
After adding
CGO_ENABLED=0
Working in both debian and alpine based images.
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.
Thanks, iirc this might be related to golang/go#28065 (I haven't kept up whether this is still the state of the world).