-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from playground/oh-mesh-3
add templates and update readme
- Loading branch information
Showing
5 changed files
with
159 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"org": { | ||
"HZN_ORG_ID": "biz", | ||
"HZN_DEVICE_TOKEN": "", | ||
"HZN_DEVICE_ID": "dragon-head", | ||
"HZN_EXCHANGE_USER_AUTH": "<iamapikey>", | ||
"HZN_EXCHANGE_URL": "https://cp-console.ieam42-edge-8e873dd4c685acf6fd2f13f4cdfb05bb-0000.us-south.containers.appdomain.cloud/edge-exchange/v1", | ||
"HZN_FSS_CSSURL": "https://cp-console.ieam42-edge-8e873dd4c685acf6fd2f13f4cdfb05bb-0000.us-south.containers.appdomain.cloud/edge-css", | ||
"HZN_AGBOT_URL": "https://cp-console.ieam42-edge-8e873dd4c685acf6fd2f13f4cdfb05bb-0000.us-south.containers.appdomain.cloud/edge-agbot/", | ||
"HZN_SDO_SVC_URL": "https://cp-console.ieam42-edge-8e873dd4c685acf6fd2f13f4cdfb05bb-0000.us-south.containers.appdomain.cloud/edge-sdo-ocs/api", | ||
"HZN_AGENT_PORT": "8510", | ||
"HZN_CSS": true, | ||
"HZN_MGMT_HUB_CERT_PATH": "/var/agent-install.crt", | ||
"CONFIG_CERT_PATH": "/home/mesh/agent-install.crt", | ||
"CONFIG_FILE_PATH": "/Users/jeff/sandbox/templates/3-22-2023", | ||
"CONFIG_FILE_NAME": "ieam-m1-in-container.json", | ||
"ANAX": "api/v1/objects/IBM/agent_files/agent-install.sh/data" | ||
}, | ||
"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": "mms_agent_config", | ||
"MMS_OBJECT_ID": "mms_agent_config_json", | ||
"MMS_OBJECT_FILE": "config/config.json", | ||
"MMS_CONTAINER_CREDS": "", | ||
"MMS_CONTAINER_NAME": "mms-agent", | ||
"MMS_SERVICE_NAME": "mms-agent", | ||
"MMS_SERVICE_VERSION": "1.0.0", | ||
"MMS_SERVICE_FALLBACK_VERSION": "1.0.0", | ||
"UPDATE_FILE_NAME": "mms-agent-config.json" | ||
}, | ||
"folders": [ | ||
"/var/tmp/horizon/horizon1/fss-domain-socket", | ||
"/var/tmp/horizon/horizon1/ess-auth", | ||
"/var/tmp/horizon/horizon1/secrets", | ||
"/var/tmp/horizon/horizon1/nmp" | ||
], | ||
"local": { | ||
"YOUR_DOCKERHUB_ID": "playbox21", | ||
"DOCKER_REGISTRY": "hub.docker.com", | ||
"DOCKER_TOKEN": "<docker token>" | ||
}, | ||
"register": { | ||
"policy": { | ||
"properties": [ | ||
{ | ||
"name": "openhorizon.allowPrivileged", | ||
"value": true | ||
} | ||
], | ||
"deployment": { | ||
"properties": [ | ||
{"name": "mms-agent", "value": "MMS Agent"}, | ||
{"name": "liquid-prep", "value": "Liquid Prep"} | ||
] | ||
} | ||
} | ||
}, | ||
"test": true, | ||
"anaxInContainer": "docker run -d -t --restart always --name horizon1 --privileged -p 127.0.0.1:8081:8510 -e DOCKER_NAME=horizon1 -e HZN_VAR_RUN_BASE=/var/tmp/horizon/horizon1 -e ANAX_DOCKER_ENDPOINT=unix:///var/run/docker.sock -v /var/run/docker.sock:/var/run/docker.sock -v /var/horizon:/etc/default/horizon:ro -v ${CONFIG_CERT_PATH}:${HZN_MGMT_HUB_CERT_PATH} -v horizon1_var:/var/horizon/ -v horizon1_etc:/etc/horizon/ -v /var/tmp/horizon/horizon1:/var/tmp/horizon/horizon1 openhorizon/arm64_anax:2.30.0-1194", | ||
"cliInContainer": "docker run -d -it --restart always --name auto-dock --privileged --network=\"host\" -v /var/lib/docker/volumes/mms_shared_volume/_data:/mms-shared/ -p 127.0.0.1:8888:8888 -v /var/run/docker.sock:/var/run/docker.sock -v /var/agent-install.crt:/var/agent-install.crt -v ${CONFIG_FILE_PATH}/${CONFIG_FILE_NAME}:/var/${CONFIG_FILE_NAME} -e HORIZON_URL=http://localhost:8081 -e HZN_ORG_ID=${HZN_ORG_ID} -e HZN_EXCHANGE_USER_AUTH=${HZN_EXCHANGE_USER_AUTH} -e HZN_FSS_CSSURL=${HZN_FSS_CSSURL} -e HZN_EXCHANGE_URL=${HZN_EXCHANGE_URL} -e HZN_CONFIG_FILE=/var/fyre-in-container.json -e version=v2.30.0-1291 -e css=${HZN_CSS} playbox21/auto-dock-express_arm64:1.0.6" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"org": { | ||
"HZN_ORG_ID": "playground", | ||
"HZN_DEVICE_TOKEN": "", | ||
"HZN_DEVICE_ID": "dragon-head", | ||
"HZN_EXCHANGE_USER_AUTH": "<iamapikey>", | ||
"HZN_EXCHANGE_URL": "http://132.177.125.232:3090/v1", | ||
"HZN_FSS_CSSURL": "http://132.177.125.232:9443/", | ||
"HZN_AGBOT_URL": "http://132.177.125.232:3111", | ||
"HZN_SDO_SVC_URL": "http://132.177.125.232:9008/api", | ||
"HZN_AGENT_PORT": "8510", | ||
"HZN_CSS": false, | ||
"CONFIG_CERT_PATH": "/home/mesh/cert/agent-install.crt", | ||
"AGENT_INSTALL_CONFIG": "/home/mesh/cert/agent-install.cfg", | ||
"CONFIG_FILE_PATH": "/Users/jeff/sandbox/templates/3-22-2023", | ||
"CONFIG_FILE_NAME": "open-horizon-m1-in-container.json", | ||
"ANAX": "https://github.com/open-horizon/anax/releases/download/v2.30.0-1291" | ||
}, | ||
"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": "mms_agent_config", | ||
"MMS_OBJECT_ID": "mms_agent_config_json", | ||
"MMS_OBJECT_FILE": "config/config.json", | ||
"MMS_CONTAINER_CREDS": "", | ||
"MMS_CONTAINER_NAME": "mms-agent", | ||
"MMS_SERVICE_NAME": "mms-agent", | ||
"MMS_SERVICE_VERSION": "1.0.0", | ||
"MMS_SERVICE_FALLBACK_VERSION": "1.0.0", | ||
"UPDATE_FILE_NAME": "mms-agent-config.json" | ||
}, | ||
"folders": [ | ||
"/var/tmp/horizon/horizon1/fss-domain-socket", | ||
"/var/tmp/horizon/horizon1/ess-auth", | ||
"/var/tmp/horizon/horizon1/secrets", | ||
"/var/tmp/horizon/horizon1/nmp" | ||
], | ||
"local": { | ||
"YOUR_DOCKERHUB_ID": "playbox21", | ||
"DOCKER_REGISTRY": "hub.docker.com", | ||
"DOCKER_TOKEN": "<docker token>" | ||
}, | ||
"register": { | ||
"policy": { | ||
"properties": [ | ||
{ | ||
"name": "openhorizon.allowPrivileged", | ||
"value": true | ||
} | ||
], | ||
"deployment": { | ||
"properties": [ | ||
{"name": "mms-agent", "value": "MMS Agent"}, | ||
{"name": "liquid-prep", "value": "Liquid Prep"} | ||
] | ||
} | ||
} | ||
}, | ||
"test": true, | ||
"anaxInContainer": "docker run -d -t --restart always --name horizon1 --privileged -p 127.0.0.1:8081:8510 -e DOCKER_NAME=horizon1 -e HZN_VAR_RUN_BASE=/var/tmp/horizon/horizon1 -v /var/run/docker.sock:/var/run/docker.sock -v /var/horizon:/etc/default/horizon:ro -v /var/agent-install.crt:/var/agent-install.crt -v horizon1_var:/var/horizon/ -v horizon1_etc:/etc/horizon/ -v /var/tmp/horizon/horizon1:/var/tmp/horizon/horizon1 openhorizon/arm64_anax:2.30.0-1291", | ||
"cliInContainer": "docker run -d -it --restart always --name auto-dock --privileged --network=\"host\" -v /var/lib/docker/volumes/mms_shared_volume/_data:/mms-shared/ -p 127.0.0.1:8888:8888 -v /var/run/docker.sock:/var/run/docker.sock -v /var/agent-install.crt:/var/agent-install.crt -v ${CONFIG_FILE_PATH}/${CONFIG_FILE_NAME}:/var/${CONFIG_FILE_NAME} -e HORIZON_URL=http://localhost:8081 -e HZN_ORG_ID=${HZN_ORG_ID} -e HZN_EXCHANGE_USER_AUTH=${HZN_EXCHANGE_USER_AUTH} -e HZN_FSS_CSSURL=${HZN_FSS_CSSURL} -e HZN_EXCHANGE_URL=${HZN_EXCHANGE_URL} -e HZN_CONFIG_FILE=/var/open-horizon-m1-in-container.json -e version=v2.30.0-1291 playbox21/auto-dock-express_arm64:1.0.6" | ||
} | ||
|