Artisan-Lab / RAP

Rust Analysis Platform
39 stars 14 forks source link

Publish Official Image or Pre-Built Binary #5

Open TheVeryDarkness opened 7 months ago

TheVeryDarkness commented 7 months ago

Safedrop is a very useful static analysis tool, which helps us a lot. However, it's quite a burden for users to build the image, as it will clone many submodules, which may take a very long time and often fails. Maybe it's a considerable choice to publish your built images or upload pre-built rustc (or maybe a whole toolchain, especially a cargo binary, with suitable versions).

y1lan commented 5 months ago

what about download each submodule manually ? I have encountered the same problem - network limitation But manually downloading the submoudle did it.

TheVeryDarkness commented 5 months ago

what about download each submodule manually ? I have encountered the same problem - network limitation But manually downloading the submoudle did it.

Are you referring to mounting this repository as a volume in a container and then manually cloning the submodules? It's also a good idea.

y1lan commented 5 months ago

what about download each submodule manually ? I have encountered the same problem - network limitation But manually downloading the submoudle did it.

Are you referring to mounting this repository as a volume in a container and then manually cloning the submodules? It's also a good idea.

都中国人,别讲英语了,我的意思就是手动下载,点进github界面然后download zip,再手动解压。 如果你构建完了那当我没说。

TheVeryDarkness commented 5 months ago

好,谢谢您的建议。 但是直接用仓库里面给的Dockerfile来docker build的话还是会在容器里面克隆啊。我现在确实构建成功了,没用它的Dockerfile,开了个Debian容器,然后把在宿主机克隆好的仓库挂载到容器里,在容器里编译的,倒是能用,但是不太方便再次分发。 (哥们儿你也没说你是中国人呀)

y1lan commented 5 months ago

好,谢谢您的建议。 但是直接用仓库里面给的Dockerfile来docker build的话还是会在容器里面克隆啊。我现在确实构建成功了,没用它的Dockerfile,开了个Debian容器,然后把在宿主机克隆好的仓库挂载到容器里,在容器里编译的,倒是能用,但是不太方便再次分发。 (哥们儿你也没说你是中国人呀)

原来是要再次分发,容器的东西我不太懂,献丑了。

TheVeryDarkness commented 5 months ago

好,谢谢您的建议。 但是直接用仓库里面给的Dockerfile来docker build的话还是会在容器里面克隆啊。我现在确实构建成功了,没用它的Dockerfile,开了个Debian容器,然后把在宿主机克隆好的仓库挂载到容器里,在容器里编译的,倒是能用,但是不太方便再次分发。 (哥们儿你也没说你是中国人呀)

原来是要再次分发,容器的东西我不太懂,献丑了。

没事,谢谢兄弟的好意。