Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Stripe CLI listener as a service during CI?

Lee Evans
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 15, 2022

Hi Guys,

Our test suite requires listening for Stripe webhooks using the Stripe CLI.  On the local environment I can run:-

stripe listen --forward-to http://localhost

which  forwards webhooks to the local server.

I've tried a couple of approaches to this but without success.

Seems like I should create a stripe service definition using their docker container

definitions:
services:
stripe:
image: stripe/stripe-cli
environment:
STRIPE_API_KEY: $STRIPE_SECRET
STRIPE_DEVICE_NAME: 'BITBUCKET_CI' 

 But this gives an error:-

standard_init_linux.go:228: exec user process caused: exec format error

 which maybe due to the processor type the image is compiled for.  Also not sure how I would start the listener if it would run.  

This is the usual command:-

docker run --rm -it stripe/stripe-cli listen \
    --api-key sk_test_xxxxxxxxx

is it possible to send a command to a service?

 

Many Thanks for any pointers.

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events