Closed YujiaCheng1996 closed 1 year ago
镜像基于https://github.com/fjc0k/docker-YApi 来构建,这个确实没法安装其他插件,add-user默认已经集成,可以不用配置,其他插件我可以先集成进来,后续有时间再搞一个可以下载插件的镜像。 不过yapi不是本身就提供自动更新接口的功能吗?import-swagger-customize这个插件会提供其他更友好的功能吗?
之前用的 https://github.com/fjc0k/YApi-X 的docker镜像,是可以安装自定义的插件的,唯一的问题是太久没有更新,有漏洞。根据报错看大约是node版本低了,导致部分包无法安装。import-swagger-customize可以自定义更新或引入指定的接口,相比完整的更灵活一些。。。
好的,后续我试一下基于 https://github.com/fjc0k/YApi-X 来构建新镜像。当前已经把上面提到的插件都加载到镜像内了,可以拉一下最新镜像体验一下
谢谢,内置插件进去了首次启动快好多!
版本号
~ 1007d68ecfe4 xuweijie1015/yapi:latest
什么问题
如何复现此问题
~ - YAPI_PLUGINS=[{"name":"add-user"},{"name":"export-schema"},{"name":"import-swagger-customize"},{"name":"webhook"},{"name":"notifier","options":{"host":"http://localhost:8090/"}}] ~ 环境变量中YAPI_PLUGINS不使用默认值,增加其他插件。 ~ import-swagger-customize这个是能够自动更新接口的,无法使用比较蛋疼。
什么浏览器
~ 无关
什么系统(Linux, Windows, macOS)Linux