下载docker镜像
1、wget https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate_1.4.0-images.tar.gz
2、查看镜像是否成功
docker load -i fate_1.4.0-images.tar.gz
3、1. 下载并解压kubefate-docker-compose
下载并解压Kubefate1.4的kubefate-docker-compose.tar.gz资源包curl –OL https://github.com/FederatedAI/KubeFATE/releases/download/v1.4.0/kubefate-docker-compose.tar.gz
4、解压compose
tar -xzf kubefate-docker-compose.tar.gz
5、之后根据fate官网进入docker-deploy目录操作即可
(fate官网:https://github.com/FederatedAI/FATE)
Warning:
1、如果在linux服务器上装的话(比如:ubuntu用户,不是root),需要修改user和dir及服务器的地址:
2、执行sudo bash docker_deploy.sh all 时报错
Error starting userland proxy: listen tcp 0.0.0.0:2049: bind: address already in use
方法:一般是8869,8000两个端口报错(https://stackoverflow.com/questions/55535967/error-starting-userland-proxy-listen-tcp-0-0-0-02049-bind-address-already-in)
3、在线测试的另外一种形式
通过curl发送以下信息到
curl -X POST -H ‘Content-Type: application/json’ -i ‘http://10.1.40.215:8059/federation/v1/inference’ --data ‘{“head”: {“serviceId”: “test”},“body”: {“featureData”: {“x0”: 0.254879,“x1”: -1.046633,“x2”: 0.209656,“x3”: 0.074214,“x4”: -0.441366,“x5”: -0.377645,“x6”: -0.485934,“x7”: 0.347072,“x8”: -0.287570,“x9”: -0.733474},“sendToRemoteFeatureData”: {“id”: “123”}}}’
在页面中打开fateboard,只需复制shell脚本中弹出的网址:
并把fateboard修改为服务器的ip,比如:http://10.1.40.215:8080/index.html#/details?job_id=202010300627507961067&role=guest&party_id=215&from=Job%20overview&page=1