v2fly / docker

docker build repo for v2fly
https://hub.docker.com/r/v2fly/v2fly-core
MIT License
754 stars 215 forks source link

自动构建并push到DockerHub #15

Closed ghost closed 3 years ago

ghost commented 3 years ago
Loyalsoldier commented 3 years ago

Why closed?

ghost commented 3 years ago

Why closed?

I'm still testing, please give me some time

ghost commented 3 years ago
* 支持7种架构

* 同时push latest 和 最新版 v4.xx.xx 两个标签

* 全部采用官方 action

* 增加 push 后的测试环节

* 已在本地仓库运行通过

CI 测试已经通过:https://github.com/charlieethan/test/actions/runs/298919350/workflow

Loyalsoldier commented 3 years ago
docker buildx build --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x \
          --output "type=image,push=true" \
          --tag "${{ secrets.DOCKER_USERNAME }}/v2fly-core:latest" \
          --file Dockerfile .

确认一下上面这行命令最后的 file Dockerfile 是指你添加的 Dockerfile,还是仓库原本的 Dockerfile?

ghost commented 3 years ago
docker buildx build --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x \
          --output "type=image,push=true" \
          --tag "${{ secrets.DOCKER_USERNAME }}/v2fly-core:latest" \
          --file Dockerfile .

确认一下上面这行命令最后的 file Dockerfile 是指你添加的 Dockerfile,还是仓库原本的 Dockerfile?

确定是我的 Dockerfile,但为了以防万一我已将 Dockerfile 改名为 Dockerfile.multi ,测试通过:https://github.com/charlieethan/test/actions/runs/299005103/workflow

kslr commented 3 years ago

没有用 squash 导致多了大量 commit,我 soft reset 后提交人变成我了,你要不要再来一次?

ghost commented 3 years ago

没有用 squash 导致多了大量 commit,我 soft reset 后提交人变成我了,你要不要再来一次?

不需要了,运行OK即可

Loyalsoldier commented 3 years ago

git commit --amend --author="username <username@gmail.com>"

Loyalsoldier commented 3 years ago

https://hub.docker.com/layers/v2fly/v2fly-core/v4.31.0/images/sha256-cd1c1d227ea6546d1541301fcd70645b9557b2045d08ff8830d0b86a34b1bda9?context=explore

DockerHub 上这第七层占据的 9.57MB 空间,是不是可以释放出来?

image

ghost commented 3 years ago

https://hub.docker.com/layers/v2fly/v2fly-core/v4.31.0/images/sha256-cd1c1d227ea6546d1541301fcd70645b9557b2045d08ff8830d0b86a34b1bda9?context=explore

DockerHub 上这第七层占据的 9.57MB 空间,是不是可以释放出来?

image

有什么办法吗?我给 VLESS 做的 docker 直接wget现成的包才能做到18M,没有copy这一层,和秋水大佬那边大小差不多 (我比他多4M因为用了你的加强版 geo*.dat)

ghost commented 3 years ago

https://hub.docker.com/layers/v2fly/v2fly-core/v4.31.0/images/sha256-cd1c1d227ea6546d1541301fcd70645b9557b2045d08ff8830d0b86a34b1bda9?context=explore DockerHub 上这第七层占据的 9.57MB 空间,是不是可以释放出来? image

有什么办法吗?我给 VLESS 做的 docker 直接wget现成的包才能做到18M,没有copy这一层,和秋水大佬那边大小差不多 (我比他多4M因为用了你的加强版 geo*.dat)

我还注意到一件事:v2fly 这边的 Docker 自9个月前的 v4.21.7 就一直是25M左右,而秋水大佬那边一直维持在15M左右,究其原因在 COPY v2ray.xx.tar.gz 这一层就占用了接近10M的大小,所以如果想减小体积可能只能wget现成的包,如果各位大佬同意直接从 v2ray-core 的release下载包,我可以再改一下

Loyalsoldier commented 3 years ago

我觉得可以直接下载,然后验证一下文件完整性

ghost commented 3 years ago

我觉得可以直接下载,然后验证一下文件完整性

行,我改一下再PR吧