-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3470 from FederatedAI/develop-1.7
Improve build and standalone deploy docs
- Loading branch information
Showing
15 changed files
with
263 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Get the source code | ||
|
||
## 1. Setting Temporary Environment Variables | ||
|
||
Set temporary environment variables (note that the environment variables set in the following way are only valid for the current terminal session, if you open a new terminal session, such as a new login or a new window, please set them again) | ||
|
||
```bash | ||
export branch={branch name, or using v and version number if you are using a release branch, e.g. v1.7.0} | ||
export version={FATE version number, e.g. 1.7.0} | ||
export version_tag={FATE version tag, e.g. rc1/rc2/release} | ||
``` | ||
Example: | ||
```bash | ||
export branch=v1.7.0 | ||
export version=1.7.0 | ||
export version_tag=release | ||
``` | ||
```bash | ||
export branch=develop-1.7 | ||
export version=1.7.0 | ||
export version_tag=release | ||
``` | ||
## 2. Get the code from Github | ||
```bash | ||
git clone https:/FederatedAI/FATE.git -b ${branch} --recurse-submodules --depth=1 | ||
``` | ||
The **depth** parameter indicates that only the latest committed code is fetched, which can speed up cloning. | ||
## 3. Get code from Gitee (try Gitee when you can't connect to Github to get code) | ||
When you can't connect to Github to get your code, try Gitee. | ||
Please note that with Gitee you can only update code, not push code or post issues, use Github. | ||
```bash | ||
git clone https://gitee.com/FederatedAI/FATE.git -b ${branch} --depth=1; | ||
cd FATE; | ||
bash build/common/update_submodule_from_gitee.sh | ||
``` | ||
## 4. Update the code | ||
```bash | ||
cd FATE | ||
git pull | ||
git submodule update --remote | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# 获取源代码 | ||
|
||
## 1. 设置临时环境变量 | ||
|
||
设置临时环境变量(注意, 通过以下方式设置的环境变量仅在当前终端会话有效, 若打开新的终端会话, 如重新登录或者新窗口, 请重新设置) | ||
|
||
```bash | ||
export branch={分支名称, 若使用某个发布版本分支, 则为`v版本号`, 如`v1.7.0`} | ||
export version={FATE版本号, 如1.7.0} | ||
export version_tag={FATE版本标签, 如rc1/rc2/release} | ||
``` | ||
|
||
样例: | ||
|
||
```bash | ||
export branch=v1.7.0 | ||
export version=1.7.0 | ||
export version_tag=release | ||
``` | ||
|
||
```bash | ||
export branch=develop-1.7 | ||
export version=1.7.0 | ||
export version_tag=release | ||
``` | ||
|
||
## 2. 从Github获取代码 | ||
|
||
```bash | ||
git clone https:/FederatedAI/FATE.git -b ${branch} --recurse-submodules --depth=1 | ||
``` | ||
|
||
**depth**参数表示只获取最新提交的代码,这可以加快克隆的速度。 | ||
|
||
## 3. 从Gitee获取代码(当你无法连接到Github获取代码时,可以试试Gitee) | ||
|
||
当你无法连接到Github获取代码时,可以尝试Gitee。 | ||
|
||
请注意,使用Gitee只能更新代码,而不能推送代码、发布问题,请使用Github。 | ||
|
||
```bash | ||
git clone https://gitee.com/FederatedAI/FATE.git -b ${branch} --depth=1; | ||
cd FATE; | ||
bash build/common/update_submodule_from_gitee.sh | ||
``` | ||
|
||
## 4. 更新代码 | ||
|
||
```bash | ||
cd FATE | ||
git pull | ||
git submodule update --remote | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.