如何使用Docker将Mountebank作为服务器启动?我正在关注this tutorial,但无法使其正常运行。
出现此错误:
warn: [mb:2525] dry running injection, use the isDryRun request field in your JavaScript to ignore...
error: [mb:2525] injection X=> SyntaxError: Unexpected token e
error: [mb:2525] source: "(function(request, logger) { return JSON.parse(request.data).hasOwnProperty('state'); })(scope, logger);"
error: [mb:2525] scope: {"requestFrom":"","data":"test","isDryRun":true}
该项目是open source和CI is Travis。我在Mountebank邮件列表中有cross-posted this discussion。
最佳答案
问题似乎是基本Docker镜像正在使用旧版本的mountebank(v1.2.122)。我对Docker并不是很熟悉,但是我认为它正在缓存最初由Conrad构建的镜像。您的配置文件可以与最新版本的mountebank一起正常工作;只需将其安装在Docker容器中即可。 -https://groups.google.com/forum/#!topic/mountebank-discuss/m-UrVZBR1sQ
关于docker - 如何在Docker中启动Mountebank?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34510772/