.gitpod.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. image:
  2. file: .gitpod.Dockerfile
  3. github:
  4. prebuilds:
  5. # enable for the default branch (defaults to true)
  6. master: true
  7. # enable for all branches in this repo (defaults to false)
  8. branches: true
  9. # enable for pull requests coming from this repo (defaults to true)
  10. pullRequests: true
  11. # enable for pull requests coming from forks (defaults to false)
  12. pullRequestsFromForks: true
  13. # add a check to pull requests (defaults to true)
  14. addCheck: true
  15. # add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
  16. addComment: false
  17. # add a "Review in Gitpod" button to the pull request's description (defaults to false)
  18. addBadge: false
  19. vscode:
  20. extensions:
  21. - ms-python.python
  22. tasks:
  23. - name: vscode settings
  24. init: |
  25. mkdir -p "$PWD/.vscode";
  26. cat << 'EOF' > "$PWD/.vscode/settings.json"
  27. {
  28. "python.envFile": "${workspaceFolder}/.vscode/.env",
  29. "python.defaultInterpreterPath": "/venv/py36/bin/python",
  30. "python.pythonPath": "/venv/py36/bin/python",
  31. "python.autoComplete.extraPaths": ["python", "python/fate_client", "python/fate_test", "fateflow/python", "eggroll/python"],
  32. "git.alwaysSignOff": true
  33. }
  34. EOF
  35. cat << 'EOF' > "$PWD/.vscode/.env"
  36. PYTHONPATH=/workspace/FATE/python:/workspace/FATE/fateflow/python:${PYTHONPATH}
  37. EOF
  38. command: exit
  39. - name: fate
  40. init: |
  41. unset PIP_USER && unset PYTHONUSERBASE
  42. cat << 'EOF' >> "$PWD/.git/info/exclude"
  43. /bin/init_env.sh
  44. EOF
  45. sed -i 's#export PYTHONPATH=#export PYTHONPATH=/workspace/FATE/python:/workspace/FATE/fateflow/python:/workspace/FATE/eggroll/python#' bin/init_env.sh
  46. sed -i 's#venv=.*#venv=/venv/py36#' bin/init_env.sh
  47. command: |
  48. git update-index --assume-unchanged bin/init_env.sh \
  49. && source /workspace/FATE/bin/init_env.sh \
  50. && bash /workspace/FATE/fateflow/bin/service.sh start \
  51. && nohup java -Dspring.config.location=/fateboard/resources/application.properties \
  52. -Dssh_config_file=/fateboard/resources/ \
  53. -Xmx2048m -Xms2048m -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError \
  54. -jar /fateboard/fateboard.jar >/dev/null 2>&1 &
  55. echo done
  56. ports:
  57. - port: 9380
  58. onOpen: ignore
  59. - port: 9360
  60. onOpen: ignore
  61. - port: 8080
  62. onOpen: open-browser