Skip to content

Commit

Permalink
add templates and up version
Browse files Browse the repository at this point in the history
  • Loading branch information
mesh committed Mar 18, 2024
1 parent 755942a commit 9bfadb1
Show file tree
Hide file tree
Showing 11 changed files with 128 additions and 453 deletions.
534 changes: 110 additions & 424 deletions agent-install.sh

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/common/src/env-hzn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"biz":
{
"envVars": {
"SERVICE_NAME": "saved-model-service",
"SERVICE_CONTAINER_NAME": "saved-model-service",
"SERVICE_NAME": "mms-agent",
"SERVICE_CONTAINER_NAME": "mms-agent",
"SERVICE_VERSION": "1.0.0",
"SERVICE_VERSION_RANGE_UPPER": "1.0.0",
"SERVICE_VERSION_RANGE_LOWER": "1.0.0",
"SERVICE_CONTAINER_CREDS": "",
"VOLUME_MOUNT": "/mms-shared",
"MMS_SHARED_VOLUME": "mms_shared_volume",
"MMS_OBJECT_TYPE": "object_detection",
"MMS_OBJECT_ID": "config.json",
"MMS_OBJECT_TYPE": "mms_agent_config",
"MMS_OBJECT_ID": "mms_agent_config_json",
"MMS_OBJECT_FILE": "config/config.json",
"MMS_CONTAINER_CREDS": "",
"MMS_CONTAINER_NAME": "mms-service",
Expand Down
4 changes: 2 additions & 2 deletions build/common/src/hzn-config/object.policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"objectType": "$MMS_OBJECT_TYPE",
"destinationOrgID": "$HZN_ORG_ID",
"destinationPolicy": {
"constrints": [
"constraints": [
{
"name": "workersafety",
"name": "worker-safety",
"value": "Worker Safety"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
"public": true,
"sharable": "singleton",
"requiredServices": [
{
"org": "$HZN_ORG_ID",
"url": "$SERVICE_NAME",
"version": "$SERVICE_VERSION_RANGE_UPPER",
"versionRange": "$SERVICE_VERSION_RANGE_LOWER",
"arch": "$ARCH"
}
],
"userInput": [
{ "name": "MMS_OBJECT_TYPE", "label": "", "type": "string", "defaultValue": "$MMS_OBJECT_TYPE" },
Expand Down
1 change: 1 addition & 0 deletions build/common/src/hzn.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/common/src/hzn.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hzn-cli",
"version": "0.8.6",
"version": "0.8.7",
"description": "Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments",
"main": "./build/index.js",
"bin": {
Expand Down Expand Up @@ -39,7 +39,8 @@
"MMS",
"Model",
"Management",
"Service"
"Service",
"Workload Placement"
],
"author": "[email protected]",
"license": "ISC",
Expand Down
1 change: 1 addition & 0 deletions src/common/src/hzn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export class Hzn {
console.log(err.message);
this.envVar.setOrgId()
if(err.message.indexOf('hzn:') >= 0) {
console.log('here:', cliBypass, cliOptional)
if(cliBypass) {
this.updateConfigFile()
.subscribe(() => {
Expand Down
8 changes: 4 additions & 4 deletions src/env-hzn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"biz":
{
"envVars": {
"SERVICE_NAME": "saved-model-service",
"SERVICE_CONTAINER_NAME": "saved-model-service",
"SERVICE_NAME": "mms-agent",
"SERVICE_CONTAINER_NAME": "mms-agent",
"SERVICE_VERSION": "1.0.0",
"SERVICE_VERSION_RANGE_UPPER": "1.0.0",
"SERVICE_VERSION_RANGE_LOWER": "1.0.0",
"SERVICE_CONTAINER_CREDS": "",
"VOLUME_MOUNT": "/mms-shared",
"MMS_SHARED_VOLUME": "mms_shared_volume",
"MMS_OBJECT_TYPE": "object_detection",
"MMS_OBJECT_ID": "config.json",
"MMS_OBJECT_TYPE": "mms_agent_config",
"MMS_OBJECT_ID": "mms_agent_config_json",
"MMS_OBJECT_FILE": "config/config.json",
"MMS_CONTAINER_CREDS": "",
"MMS_CONTAINER_NAME": "mms-service",
Expand Down
4 changes: 2 additions & 2 deletions src/hzn-config/object.policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"objectType": "$MMS_OBJECT_TYPE",
"destinationOrgID": "$HZN_ORG_ID",
"destinationPolicy": {
"constrints": [
"constraints": [
{
"name": "workersafety",
"name": "worker-safety",
"value": "Worker Safety"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
"public": true,
"sharable": "singleton",
"requiredServices": [
{
"org": "$HZN_ORG_ID",
"url": "$SERVICE_NAME",
"version": "$SERVICE_VERSION_RANGE_UPPER",
"versionRange": "$SERVICE_VERSION_RANGE_LOWER",
"arch": "$ARCH"
}
],
"userInput": [
{ "name": "MMS_OBJECT_TYPE", "label": "", "type": "string", "defaultValue": "$MMS_OBJECT_TYPE" },
Expand Down

0 comments on commit 9bfadb1

Please sign in to comment.