Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events