Skip to content

Commit

Permalink
testing horizon in container for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Jan 3, 2025
1 parent e0e5486 commit 929e761
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build/common/src/utils.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/utils.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hzn-cli",
"version": "0.9.1",
"version": "0.9.2",
"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
3 changes: 2 additions & 1 deletion src/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ export class Utils {
} else {
let pEnv = process.env;
let anax = pEnv.ANAX.replace('/agent-install.sh', '') + '/agent-install.sh';
let container = process.platform == 'darwin' ? '' : '--container'
//let container = process.platform == 'darwin' ? '' : '--container'
let container = '--container'
let nodeId = pEnv.HZN_NODE_ID || pEnv.HZN_DEVICE_ID || '';
nodeId = nodeId.length > 0 ? `-a ${nodeId}:some-device-token` : '';
let containerStr = `sudo curl -sSL ${anax} | sudo -s -E bash -s -- -i ${anax} ${container} ${nodeId} -i css: -k css: -c css:`
Expand Down

0 comments on commit 929e761

Please sign in to comment.