Skip to content

Commit

Permalink
Create and publish Docker images (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe authored Aug 13, 2019
1 parent 43c6832 commit 90a2f62
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,9 @@ scoop:
homepage: https://stripe.com
description: Stripe CLI utility
license: Apache 2.0
dockers:
- binaries:
- stripe
image_templates:
- "stripe/stripe-cli:latest"
- "stripe/stripe-cli:{{ .Tag }}"
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine

This comment has been minimized.

Copy link
@Freezystem

Freezystem Aug 14, 2019

Contributor

@ob-stripe I can be wrong but I think you must add RUN apk add ca-certificates step to allow Stripe to connect over HTTPS.
I'm currently getting this error message when trying to run this container: Error while authenticating with Stripe: Post https://api.stripe.com/v1/stripecli/sessions: x509: certificate signed by unknown authority

I have made my own Dockerfile from stripe/stripe-cli:0.4.1 adding this package and the error is gone.

FROM stripe/stripe-cli:v0.4.1

RUN apk add ca-certificates

This comment has been minimized.

Copy link
@ob-stripe

ob-stripe Aug 14, 2019

Author Contributor

Oops! That's embarrassing 🤦‍♂ I'll release a fix ASAP.

This comment has been minimized.

Copy link
@Freezystem

Freezystem Aug 14, 2019

Contributor

Haha, not a big deal, I reviewed this one and didn't notice it either. I'm always forgetting this tiny detail when I use alpine images.

COPY stripe /bin/stripe
ENTRYPOINT ["/bin/stripe"]

1 comment on commit 90a2f62

@Freezystem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😲👍

Please sign in to comment.