Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以支持离线安装sdk吗,公司内网没有网络 #128

Open
ma5d opened this issue Mar 19, 2024 · 4 comments
Open

可以支持离线安装sdk吗,公司内网没有网络 #128

ma5d opened this issue Mar 19, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@ma5d
Copy link

ma5d commented Mar 19, 2024

1. Your usage scenarios?

2. What is your expected outcome?

@ma5d ma5d added the enhancement New feature or request label Mar 19, 2024
@aooohan
Copy link
Member

aooohan commented Mar 20, 2024

想不出来怎么离线安装哈哈哈哈, 后面可能会支持导入第三方安装的包

@jan-bar
Copy link
Contributor

jan-bar commented Mar 23, 2024

下载安装包,在内网http服务上可以下载该安装包,改改插件lua的下载地址。这不就实现内网安装嘛。

@transtone
Copy link

transtone commented Apr 19, 2024

想不出来怎么离线安装哈哈哈哈, 后面可能会支持导入第三方安装的包

内网做一个 plugin镜像。 https://vfox.lhan.me/zh-hans/guides/configuration.html#%E6%8F%92%E4%BB%B6%E6%B3%A8%E5%86%8C%E8%A1%A8%E5%9C%B0%E5%9D%80

@fangzhengjin
Copy link
Contributor

@aooohan 偶然看到了vmr,觉得他的方式有一定参考价值

  1. 插件仓库可以变成纯离线的形式,即定期获取远程的sdk版本制作成json或者其他形式的缓存数据,更新到插件本地进行检索,不直接走api请求
  2. sdk下载时,针对域名和请求方式可以有一个本地映射清单,比如将要下载 https://github.com/version-fox/vfox/releases/download/v0.5.5/vfox_0.5.5_linux_aarch64.rpm ,现检查本地是否存在映射清单记录,如果存在则替换请求地址,比如清单中配置的是:https://github.com/ => http://192.168.100.100/ 那么实际下载地址就会变成 http://192.168.100.100/version-fox/vfox/releases/download/v0.5.5/vfox_0.5.5_linux_aarch64.rpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants