concourse / datadog-event-resource

Apache License 2.0
4 stars 11 forks source link

Certificate error after switch to alpine image #2

Closed VZWKirkland closed 7 years ago

VZWKirkland commented 7 years ago

After the change to alpine based image I am not able to post events to datadog:

panic: Post https://app.datadoghq.com/api/v1/events?api_key=xxx&application_key=xxx: x509: failed to load system roots and no roots provided

goroutine 1 [running]:
main.main()
    /go/src/github.com/concourse/datadog-event-resource/cmd/out/main.go:42 +0x61d

I hijacked the container and found /etc/ssl was missing, so I: apk add ca-certificates

Then I was able to curl https://app.datadoghq.com

vito commented 7 years ago

sorry about that, thanks!