The stand-alone version provides three deployment methods, which can be selected according to your actual situation:
-
Install FATE using Docker Chinese guide (Recommended)
-
Install FATE in Host Chinese guide
-
Build FATE from Source with Docker Chinese guide(It takes 40 minutes or more)
It is strongly recommended to use docker, which greatly reduces the possibility of encountering problems.
-
The host needs to be able to access the external network,pull the installation package and docker image from the public network.
-
Dependent on docker and docker-compose, docker recommended version is 18.09, docker-compose recommended version is 1.24.0, you can use the following command to verify the docker environment: docker --version and docker-compose --version, docker start and stop and other Please refer to: docker --help.
-
execute follow command by root user (because need to create directories like /var/lib/fate/data).
-
Check whether the 8080, 9060, and 9080 ports are occupied before executing. If you want to execute again, please delete the previous container and image with the docker command.
please follow the below step:
#Get code
FATE $ wget https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/docker_standalone-fate-1.2.0.tar.gz
FATE $tar -xvf docker_standalone-fate-1.2.0.tar.gz
#Execute the command
FATE $ cd docker_standalone-fate-1.2.0
FATE $ bash install_standalone_docker.sh
#Validation results
FATE $ CONTAINER_ID=`docker ps -aqf "name=fate_python"`
FATE $ docker exec -t -i ${CONTAINER_ID} bash
FATE $ bash ./federatedml/test/run_test.sh
There are a few algorithms under examples folder, try them out!
You can also experience the fateboard access via a browser: Http://hostip:8080.
-
Check whether the local 8080,9360,9380 port is occupied.
netstat -apln|grep 8080 netstat -apln|grep 9360 netstat -apln|grep 9380
-
Download the compressed package of stand-alone version and decompress it.
wget https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/standalone-fate-master-1.2.0.tar.gz tar -xvf standalone-fate-master-1.2.0.tar.gz
-
Enter FATE directory and execute the init.sh.
cd standalone-fate-master-1.2.0 source init.sh init
-
Execution test.
cd standalone-fate-master-1.2.0 bash ./federatedml/test/run_test.sh
There are a few algorithms under examples folder, try them out!
You can also experience the fateboard access via a browser: Http://hostip:8080.
-
The host needs to be able to access the external network,pull the installation package and docker image from the public network.
-
Dependent on docker and docker-compose, docker recommended version is 18.09, docker-compose recommended version is 1.24.0, you can use the following command to verify the docker environment: docker --version and docker-compose --version, docker start and stop and other Please refer to: docker --help.
-
execute follow command by root user (because need to create directories like /var/lib/fate/data).
-
Check whether the 8080, 9060, and 9080 ports are occupied before executing. If you want to execute again, please delete the previous container and image with the docker command.
-
It takes about 40 minutes to complete the build, please wait for a moment.
please follow the below step:
#Get code
FATE $ git clone https://github.com/FederatedAI/FATE.git
#Execute the command
FATE $ cd FATE/standalone-deploy
FATE $ bash build_standalone_docker.sh init
#Validation results
FATE $ CONTAINER_ID=`docker ps -aqf "name=fate_python"`
FATE $ docker exec -t -i ${CONTAINER_ID} bash
FATE $ bash ./federatedml/test/run_test.sh
There are a few algorithms under examples folder, try them out!
You can also acess the fateboard via a browser: Http://hostip:8080.
Please ignore the following messages:
-
WARNING: Image for service mysql was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.
-
debconf: delaying package configuration, since apt-utils is not installed.
-
WARNING: You are using pip version 19.2.1, however version 19.2.2 is available.You should consider upgrading via the 'pip install --upgrade pip' command.
-
WARNING: Image for service xxx was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.