Skip to content

Commit

Permalink
Merge pull request #9 from playground/build-cli
Browse files Browse the repository at this point in the history
add publish MMS object file support
  • Loading branch information
playground authored Sep 30, 2021
2 parents a25f90f + dfbd8d7 commit 9b8af19
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 38 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,25 @@ process completed.
## Here are a few examples of actions you can perform with "oh", default org is "biz"

Build service docker image
```oh deploy buildServiceImage --configpath /home/pi/config```
```oh deploy buildServiceImage --config_path /home/pi/config```

Push service docker image
```oh deploy pushServiceImage --configpath /home/pi/config```
```oh deploy pushServiceImage --config_path /home/pi/config```

Publish service to management hub
```oh deploy publishService --configpath /home/pi/config```
```oh deploy publishService --config_path /home/pi/config```

Publish service pattern
```oh deploy publishPattern --configpath /home/pi/config```
```oh deploy publishPattern --config_path /home/pi/config```

Publish MMS service
```oh deploy publishMMSService --configpath /home/pi/config```
```oh deploy publishMMSService --config_path /home/pi/config```

Publish MMS pattern
```oh deploy publishMMSPattern --configpath /home/pi/config```
```oh deploy publishMMSPattern --config_path /home/pi/config```

Publish MMS Object file
```oh deploy publishMMSObject --object_type=object_detection --object_id=config.json --object=/Users/jeff/Downloads/demo-model/demo/version1/model.zip --pattern=pattern-pi-mms-service-arm --config_path=config```

*Register agent (org=demo)-
```oh deploy registerAgent --configpath /home/pi/config --org demo```
6 changes: 5 additions & 1 deletion build/commands/deploy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ import type { Arguments, CommandBuilder } from 'yargs';
declare type Options = {
action: string;
org: string | undefined;
configpath: string | undefined;
config_path: string | undefined;
name: string | undefined;
object_type: string | undefined;
object_id: string | undefined;
object: string | undefined;
pattern: string | undefined;
};
export declare const command: string;
export declare const desc: string;
Expand Down
20 changes: 14 additions & 6 deletions build/commands/deploy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/commands/deploy.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/common/src/hzn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare class Hzn {
configPath: string;
name: string;
utils: Utils;
constructor(env: string, configPath: string, name: string);
constructor(env: string, configPath: string, name: string, objectType: string, objectId: string, objectFile: string, mmsPattern: string);
setup(): Observable<unknown>;
test(): Observable<unknown>;
buildServiceImage(): Observable<unknown>;
Expand Down
15 changes: 10 additions & 5 deletions build/common/src/hzn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9b8af19

Please sign in to comment.