Add Mozilla CA cert store in the docker image and enable building from macos #172
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.
Hi.
The initial reason of this PR has to do with us using a valid
*.random.com
certificate for our ssl enabled prometheus server, inside AWS EKS. And getting this errorx509: failed to load system roots and no roots provided
.While looking at the source code i found the undocumented (and not available in the official stable chart) option
--prometheus-ca-file
that we could have used to mitigate this, but i decided to open this PR anyway, maybe somebody else could use the features that it introduces.Related issue: #119
Introduces changes:
LOCAL_OS=macos make docker-build
by usinggsed
(brew install gnu-sed
)docker-for-mac
issue with shared directories (docker container mounts failed) not being canonicalize (becausels -l /tmp -> private/tmp
in macos) by usingreadlink
andgreadlink
(brew install coreutils
)curl
here