-
Notifications
You must be signed in to change notification settings - Fork 221
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 #592 from FederatedAI/develop-1.8.0
Merge develop-1.8.0 into master for KubeFATE 1.8.0 release
- Loading branch information
Showing
134 changed files
with
4,832 additions
and
3,431 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,49 @@ | ||
name: Push fate images to DockerHub | ||
|
||
on: | ||
push: | ||
# Publish `master` as Docker `latest` image. | ||
branches: | ||
- master | ||
- jenkins-integration | ||
|
||
# Publish `v1.2.3` tags as releases. | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
# no test is required | ||
push: | ||
runs-on: ubuntu-18.04 | ||
if: github.event_name == 'push' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare the TAG | ||
id: prepare-the-tag | ||
run: | | ||
# strip git ref prefix from version | ||
TAG="" | ||
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | ||
if [ $VERSION = "master" ]; then | ||
TAG=latest | ||
else | ||
TAG=${VERSION##*v}-release | ||
fi | ||
echo "::notice col=5 title=print tag::TAG=$TAG" | ||
echo "::set-output name=tag::$TAG" | ||
- name: Build image | ||
run: | | ||
IMG_TAG=${{steps.prepare-the-tag.outputs.tag}} | ||
cd docker-build | ||
bash docker-build.sh all | ||
- name: Log into DockerHub | ||
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Push image | ||
run: | | ||
IMG_TAG=${{steps.prepare-the-tag.outputs.tag}} | ||
cd docker-build | ||
bash docker-build.sh push |
3 changes: 1 addition & 2 deletions
3
.github/workflows/push.yml → .github/workflows/kubefate-push.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ dist/ | |
*.out | ||
*.tgz | ||
*.tar | ||
release/ |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
set -x | ||
dir=$(dirname $0) | ||
|
||
CONTAINER_NUM=13 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#PREFIX=federatedai | ||
#IMG_TAG=1.7.2-release | ||
#IMG_TAG=1.8.0-release |
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,29 @@ | ||
# KubeFATE docker build | ||
|
||
This contains the builds of some images for KubeFATE to deploy FATE. | ||
|
||
- client | ||
- nginx | ||
- spark | ||
- python-spark | ||
|
||
## Prerequisites | ||
|
||
1. A Linux host | ||
2. Docker: 18+ | ||
|
||
## Build | ||
|
||
All images build. | ||
|
||
```bash | ||
IMG_TAG=latest bash docker-build.sh all | ||
``` | ||
|
||
## push | ||
|
||
Push images to DockerHub | ||
|
||
```bash | ||
IMG_TAG=latest bash docker-build.sh all | ||
``` |
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
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
25 changes: 8 additions & 17 deletions
25
docker-deploy/training_template/public/fateboard/conf/application.properties
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 |
---|---|---|
@@ -1,29 +1,20 @@ | ||
server.port=8080 | ||
fateflow.url= | ||
spring.datasource.driver-Class-Name=com.mysql.cj.jdbc.Driver | ||
fateflow.url=http://localhost:9380 | ||
fateflow.http_app_key= | ||
fateflow.http_secret_key= | ||
spring.http.encoding.charset=UTF-8 | ||
spring.http.encoding.enabled=true | ||
server.tomcat.uri-encoding=UTF-8 | ||
fateboard.datasource.jdbc-url=<jdbc.url> | ||
fateboard.datasource.username=<jdbc.username> | ||
fateboard.datasource.password=<jdbc.password> | ||
fateboard.front_end.cors=false | ||
fateboard.front_end.url=http://localhost:8028 | ||
server.tomcat.max-threads=1000 | ||
server.tomcat.max-connections=20000 | ||
spring.servlet.multipart.max-file-size=10MB | ||
spring.servlet.multipart.max-request-size=100MB | ||
spring.datasource.druid.filter.config.enabled=false | ||
spring.datasource.druid.web-stat-filter.enabled=false | ||
spring.datasource.druid.stat-view-servlet.enabled=false | ||
server.compression.enabled=true | ||
server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain | ||
server.board.login.username=<fateboard.username> | ||
server.board.login.password=<fateboard.password> | ||
management.endpoints.web.exposure.exclude=* | ||
#server.ssl.key-store=classpath: | ||
#server.ssl.key-store-password= | ||
#server.ssl.key-password= | ||
#server.ssl.key-alias= | ||
spring.session.store-type=jdbc | ||
spring.session.jdbc.initialize-schema=always | ||
#HTTP_APP_KEY= | ||
#HTTP_SECRET_KEY= | ||
server.servlet.session.timeout=4h | ||
server.servlet.session.cookie.max-age=4h | ||
management.endpoints.web.exposure.exclude=* |
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.