Skip to content

Latest commit

 

History

History
119 lines (84 loc) · 3.48 KB

build.md

File metadata and controls

119 lines (84 loc) · 3.48 KB

FATE Packages Build Guide

[TOC]

1. Software Environment

Name Version
JDK 1.8+
Maven 3.6.1+
Python 3.6.5

2. Get the source code

Please refer to get source code

3. Build the FATE system software package

cd FATE;
bash build/package-build/build.sh ${version_tag} all

The all means that modules needs to be deployed, all means all, supports all, fateflow fateboard eggroll examples

4. Output

ls -l FATE_install_${version}_${version_tag}.tar.gz

5. Check package

tar xzf FATE_install_${version}_${version_tag}.tar.gz;
ls -lrt FATE_install_${version}_${version_tag}

You can see the following package:

Name Details
bin.tar.gz some scripts
conf.tar.gz some configuration files
build.tar.gz build scripts
deploy.tar.gz deploy scripts
examples.tar.gz some algorithm test examples
fate.tar.gz include federatedml and fate arch
fateflow.tar.gz fateflow packages
fateboard.tar.gz fateboard packages
eggroll.tar.gz eggroll cluster: cluster manager, node manager, rollsiter
fate.env settings for version
requirements.txt necessary dependency for python environment
RELEASE.md release document
packages_md5.txt md5 numbers for each package

6. Build the python dependency install package(Optional)

You can build python dependency package like:

cd FATE
bash build/package-build/build.sh ${version_tag} pypi

And then you found it:

FATE_install_${version}_${version_tag}/pypi.tar.gz

You can use it like:

pip install -r FATE/python/requirements.txt --no-index -f FATE_install_${version}_${version_tag}/pypi

Ensure that the operating system on which the dependency packages are made and the operating system on which the dependency packages will be installed are the same Don't forget to set the value of ${version}

7. Build the python environment install package(Optional)

You can build it like:

cd FATE
bash build/package-build/build.sh ${version_tag} python36

And then you found it:

FATE_install_${version}_${version_tag}/python36.tar.gz

Ensure that the operating system on which the dependency packages are made and the operating system on which the dependency packages will be installed Don't forget to set the value of ${version}

8. Build the java environment install package(Optional)

You can build it like:

cd FATE
bash build/package-build/build.sh ${version_tag} jdk

And then you can use it like:

FATE_install_${version}_${version_tag}/jdk.tar.gz

9. Build the whole package with FATE system software and environment dependencies(Optional)

cd FATE;
bash build/package-build/build.sh ${version_tag} bin conf examples build deploy fate fateflow fateboard eggroll proxy jdk python36 pypi