构建镜像
官方提供了一个 FATE Builder 项目https://github.com/FederatedAI/FATE-Builder 。但是用这个项目直接构建还是会遇到不少卡点。于是我基于上面的项目Fork 了一份,主要调整了Dockerfile.arm64
构建步骤可阅读 https://github.com/fork-to-here/FATE-Builder/blob/main/docker-build/README_zh.md
我的构建命令是:
FATE_DIR=/Users/chenzhijun/workbench/FederatedAI/FATE REFIX=laotie255 TAG=1.10.0-release Build_Basic=1 Build_NN=0 Build_FUM=1 Build_Spark=0 Build_OP=1 Build_IPCL=0 Build_GPU=0 Build_LLM=1 Build_LLM_VERSION=v1.2.0 IPCL_VERSION=v1.1.3 IPCL_PKG_DIR=IPCL_PKG_DIR=/Users/chenzhijun/workbench/FederatedAI/pailliercryptolib_python/ Platform=arm64 bash build.sh all
.env 文件似乎没什么用,还是需要在构建指令手动注入环境变量,后面的all参数可以分解为package、base、modules 三个步骤,分别对应源码构建、基础镜像构建、各个模块的镜像构建。
镜像发布
阿里云
- registry.cn-hangzhou.aliyuncs.com/laotie255/base-image:1.10.0-release
- registry.cn-hangzhou.aliyuncs.com/laotie255/client:1.10.0-release
- registry.cn-hangzhou.aliyuncs.com/laotie255/fateboard:1.10.0-release
- registry.cn-hangzhou.aliyuncs.com/laotie255/eggroll:1.10.0-release
- registry.cn-hangzhou.aliyuncs.com/laotie255/fateflow-spark:1.10.0-release
Docker Hub
- https://hub.docker.com/repository/docker/laotie255/fateflow/tags
- https://hub.docker.com/repository/docker/laotie255/eggroll/tags
- https://hub.docker.com/repository/docker/laotie255/client/tags
- https://hub.docker.com/repository/docker/laotie255/fateboard/tags
