How to use Mountebank to create mock server for gRPC service?

368 views
Skip to first unread message

TaeXtreme Natdanai

unread,
Jan 31, 2023, 2:55:13 AM1/31/23
to mountebank-discuss
Hello, i currently testing my app using Jmeter and Mountebank. I currently use Mountebank to mock an external service that my app needed but some external apis use gRPC. And I found that Mountebank has gRPC community plugin.
I currently using Mountebank in Docker but i the plugin page did not provide the way to use the plugin with docker or docker compose.
So i want to ask how to deploy a mountebank container with gRPC plugin via docker compose. Or is there other way i can create gRPC imposter without that plugin.

Rochit Sen

unread,
Jan 31, 2023, 6:24:53 PM1/31/23
to mountebank-discuss
I think you will need to create a protocols.json file that has the path to the gPRC library (as per the plugin doco). When you start mountebank in docker map the path of where the library code is in docker command. Something like -  "mb start --protofile protocols.json" where docker knows where to find protocols.json and also the library code.
Have not tried it, but this is just my suggestion.   

TaeXtreme Natdanai

unread,
Feb 1, 2023, 11:18:45 PM2/1/23
to mountebank-discuss
Well look like the plugin is abandoned already I can't even npm install it on my local machine. 

Is their a alternative way for me to mock grpc service without the pluggin?

ในวันที่ วันพุธที่ 1 กุมภาพันธ์ ค.ศ. 2023 เวลา 6 นาฬิกา 24 นาที 53 วินาที UTC+7 Rochit Sen เขียนว่า:

craig...@gmail.com

unread,
Jul 29, 2023, 1:45:07 PM7/29/23
to mountebank-discuss
I am using the abandoned plugin in a project inside a docker-compose environment.

If this is still an issue for you contact me and I can share the details.
Reply all
Reply to author
Forward
0 new messages