#xarm-cli-docker

1 messages · Page 1 of 1 (latest)

neon flax
#

hello! can you say more about this set up? like what are you mechanically expecting to happen, so I can wrap my head around it:

I would like to have the service that I built (uses Stripe), to be able to be run by my peers by simply running a docker container

grim meteor
#

Hi yeah so basically I have a few microservices that can run locally. For example I use GCP, and use their datastore (document storage) and pubsub services. when running locally, I can fire up the datastore emulator, and pubsub emulator they provide, so that when developing, those services don't have to actually talk to GCP, they just speak locally and there is no authentication required. With my Stripe service, I have to provide the Testing API keys, and also have to fire up the CLI, authenticate, and then webhooks so that I can locally capture the webhook events from Stripe.

#

This means I can't automate the local development environment within a docker container because it would need to authenticate with the Stripe CLI manually still

#

Was just wondering if there any kind of recommendations or a possibility of having my service only talk to a local Stripe emulator of some kind or some way where it doesn't have to talk to a remote host and authenticate

#

@neon flax any recommendations? If there's no way to resolve this it's fine I can manage some other way rather than automating fully

neon flax
#

possibility of having my service only talk to a local Stripe emulator
maybe stripe-mock will work for you?
also what if instead of CLI, you register a webhook endpoint in test mode? that way you don't need to "start" Stripe CLI?

also, (this is something I'm not clear on myself) does CLI always need a stripe login ? Or can you just kickstart it with a particular API key like https://stripe.com/docs/cli/login#login-interactive

grim meteor
#

thanks @neon flax. Stripe-mock and login interactive flag might help. Regarding your mention of:

you register a webhook endpoint in test mode

could you please explain more about this option? not sure I follow