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, You can verify the docker environment with the following command:docker --version and docker-compose --version.
-
execute follow command by root user (because need to create /var/log/fate directory).
-
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 execution, please wait for a moment.
please follow the below step:
#Get code
FATE $ git clone https://github.com/WeBankFinTech/FATE.git
#Execute the command
FATE $ cd FATE/standalone-deploy
FATE $ sh build_standalone_docker.sh
#Validation results
FATE $ CONTAINER_ID=`docker ps -aqf "name=fate_python"`
FATE $ docker exec -t -i ${CONTAINER_ID} bash
FATE $ sh ./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://host ip:8080.
Please ignore the following tips:
-
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.
-
Install MySQL locally and make sure that you can access it through port 3306
-
Install Python on this machine. The requirement of Python version is higher than 3.6.5 and lower than 3.7. You can check the version information by python --version command, and execute pip --version command to see if pip can be used properly.
python --version pip --version
-
Install JDK1.8 locally and check the installation success with the java -version command
java -version
-
Check whether the local 8080 port is occupied.
netstat -apln|grep 8080
-
Create MySQL database fate_flow and user fate_dev:
create database fate_flow DEFAULT CHARSET utf8 COLLATE utf8_general_ci; create user 'fate_dev'@'localhost' identified by 'fate_dev'; grant all on *.* to 'fate_dev'@'localhost'; flush privileges;
-
Download the compressed package of stand-alone version and decompress it.
wget https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/FATE.tar.gz
tar -xvf FATE.tar.gz
- Enter FATE directory and execute the init.sh.
cd FATE
sh init.sh