Skip to content
Branch: master
Find file History
paulbaogang modify version information
Signed-off-by: root <paulbao@webank.com>
Latest commit 8ebca2b Jan 2, 2020
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
doc modify doc Dec 25, 2019
docker update allinone-deploy Oct 20, 2019
README.md modify doc Dec 25, 2019
build_standalone_docker.sh modify version information Jan 2, 2020

README.md

FATE Stand-alone Deployment Guide

The stand-alone version provides three deployment methods, which can be selected according to your actual situation:

1) Install FATE using Docker*(Recommended)*

It is strongly recommended to use docker, which greatly reduces the possibility of encountering problems.

  1. The host needs to be able to access the external network,pull the installation package and docker image from the public network.

  2. 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.

  3. execute follow command by root user (because need to create directories like /var/lib/fate/data).

  4. 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.

2) Install FATE in Host

  1. Check whether the local 8080,9360,9380 port is occupied.

    netstat -apln|grep 8080
    netstat -apln|grep 9360
    netstat -apln|grep 9380
    
  2. 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
    
  3. Enter FATE directory and execute the init.sh.

    cd standalone-fate-master-1.2.0
    source init.sh init
    
  4. 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.

3) Build FATE from Source with Docker

  1. The host needs to be able to access the external network,pull the installation package and docker image from the public network.

  2. 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.

  3. execute follow command by root user (because need to create directories like /var/lib/fate/data).

  4. 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.

  5. 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:

  1. 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.

  2. debconf: delaying package configuration, since apt-utils is not installed.

  3. 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.

  4. 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.

You can’t perform that action at this time.