cnpm / rapid

The fastest way to install npm packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

这个工具支持 gitlab runner 上的 CI 使用吗

jiehwa opened this issue · comments

如题,想要提升 gitlab runner ci 的构建速度,可以使用 rapid 吗

可以的。不过有个地方得优化下,因为 rapid 里默认用的是 registry.npmmirror.com 这个是国内的,github action 是海外的,网络上会有问题。

可以的。不过有个地方得优化下,因为 rapid 里默认用的是 registry.npmmirror.com 这个是国内的,github action 是海外的,网络上会有问题。

哦,那就没问题了,我这里说的是公司内的 gitlab,不是 github 哈,源也确实是用 registry.npmmirror.com 的

gitlab 使用得注意一下是不是容器运行环境?需要增加额外的 SYS_ADMIN 权限和挂载 /dev/fuse。

可以参考这篇文档 https://docs.gitlab.com/runner/configuration/advanced-configuration.html