pai/contrib/submit-job-v2
Guoxin d2dad90a0d
fix critical dependant alerts (#5756)
2022-04-08 21:52:22 +08:00
..
src fix rest-server-uri (#4737) 2020-07-17 16:04:13 +08:00
.editorconfig [Docs] Add docs for protocol and marketplace plugins (#2820) 2019-05-28 10:37:28 +08:00
.gitignore [Docs] Add docs for protocol and marketplace plugins (#2820) 2019-05-28 10:37:28 +08:00
LICENSE [Docs] Add docs for protocol and marketplace plugins (#2820) 2019-05-28 10:37:28 +08:00
README.md Remove previous docs (#4545) 2020-05-19 10:23:14 +08:00
package.json Update openpai-js-sdk version for security alert (#5296) 2021-02-09 10:46:46 +08:00
tsconfig.json [Docs] Add docs for protocol and marketplace plugins (#2820) 2019-05-28 10:37:28 +08:00
tslint.json [Docs] Add docs for protocol and marketplace plugins (#2820) 2019-05-28 10:37:28 +08:00
typings.d.ts [Docs] Add docs for protocol and marketplace plugins (#2820) 2019-05-28 10:37:28 +08:00
webpack.config.js Use JS SDK in submit-job-v2 plugin (#4613) 2020-06-12 09:06:50 +08:00
yarn.lock fix critical dependant alerts (#5756) 2022-04-08 21:52:22 +08:00

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.

License

MIT License