зеркало из https://github.com/microsoft/pai.git
d2dad90a0d | ||
---|---|---|
.. | ||
src | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
README.md | ||
package.json | ||
tsconfig.json | ||
tslint.json | ||
typings.d.ts | ||
webpack.config.js | ||
yarn.lock |
README.md
Submit Job v2 Plugin
A web portal plugin to submit job v2 on OpenPAI.
Usage
This plugin is used to submit PAI job v2 on web portal.
User can upload a job v2 yaml file from disk, choose a job v2 from marketplace, or use the submission form to fill in a job v2 config.
Please refer to PAI protocol spec for more details.
Build
git clone https://github.com/Microsoft/pai.git
cd pai/contrib/submit-job-v2
yarn install
yarn build
The built files will be located in dist/
.
Deployment
Put the built plugin files to a static file server that is accessible by the user. Read PLUGINS for details.
Append the following plugin configuration block to the webportal.plugins
section of service-configuration.yaml
file.
webportal:
plugins:
- id: submit-job-v2
title: Submit Job v2
uri: # uri of dist/plugin.js
Development
git clone https://github.com/Microsoft/pai.git
cd pai/contrib/submit-job-v2
yarn install
yarn start
Configure the plugin of webportal env file with the uri http://localhost:9090/plugin.js
.