@constellation-network/node-pilot 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @constellation-network/node-pilot
21
21
  $ cpilot COMMAND
22
22
  running command...
23
23
  $ cpilot (--version|-v)
24
- @constellation-network/node-pilot/0.0.10 darwin-arm64 node-v22.15.0
24
+ @constellation-network/node-pilot/0.0.11 darwin-arm64 node-v22.15.0
25
25
  $ cpilot --help [COMMAND]
26
26
  USAGE
27
27
  $ cpilot COMMAND
@@ -62,7 +62,7 @@ EXAMPLES
62
62
  $ cpilot config
63
63
  ```
64
64
 
65
- _See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.10/src/commands/config.ts)_
65
+ _See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.11/src/commands/config.ts)_
66
66
 
67
67
  ## `cpilot config get [NAME]`
68
68
 
@@ -86,7 +86,7 @@ EXAMPLES
86
86
  $ cpilot config get gl0:CL_PUBLIC_HTTP_PORT
87
87
  ```
88
88
 
89
- _See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.10/src/commands/config/get.ts)_
89
+ _See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.11/src/commands/config/get.ts)_
90
90
 
91
91
  ## `cpilot config set NAME VALUE`
92
92
 
@@ -109,7 +109,7 @@ EXAMPLES
109
109
  $ cpilot config set gl0:CL_PUBLIC_HTTP_PORT 9000
110
110
  ```
111
111
 
112
- _See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.10/src/commands/config/set.ts)_
112
+ _See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.11/src/commands/config/set.ts)_
113
113
 
114
114
  ## `cpilot help [COMMAND]`
115
115
 
@@ -146,7 +146,7 @@ EXAMPLES
146
146
  $ cpilot info
147
147
  ```
148
148
 
149
- _See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.10/src/commands/info.ts)_
149
+ _See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.11/src/commands/info.ts)_
150
150
 
151
151
  ## `cpilot logs LAYER`
152
152
 
@@ -170,7 +170,7 @@ EXAMPLES
170
170
  $ cpilot logs
171
171
  ```
172
172
 
173
- _See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.10/src/commands/logs.ts)_
173
+ _See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.11/src/commands/logs.ts)_
174
174
 
175
175
  ## `cpilot restart [LAYER]`
176
176
 
@@ -178,7 +178,7 @@ A full shutdown of the validator node, then restart
178
178
 
179
179
  ```
180
180
  USAGE
181
- $ cpilot restart [LAYER] [-p ] [--autostart] [--update]
181
+ $ cpilot restart [LAYER] [-p hypergraph] [--autostart] [--update]
182
182
 
183
183
  ARGUMENTS
184
184
  LAYER network layer to restart. e.g. gl0
@@ -189,7 +189,7 @@ FLAGS
189
189
 
190
190
  GLOBAL FLAGS
191
191
  -p, --project=<option> Specify the project name to use
192
- <options: >
192
+ <options: hypergraph>
193
193
 
194
194
  DESCRIPTION
195
195
  A full shutdown of the validator node, then restart
@@ -198,7 +198,7 @@ EXAMPLES
198
198
  $ cpilot restart
199
199
  ```
200
200
 
201
- _See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.10/src/commands/restart.ts)_
201
+ _See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.11/src/commands/restart.ts)_
202
202
 
203
203
  ## `cpilot shutdown`
204
204
 
@@ -215,7 +215,7 @@ EXAMPLES
215
215
  $ cpilot shutdown
216
216
  ```
217
217
 
218
- _See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.10/src/commands/shutdown.ts)_
218
+ _See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.11/src/commands/shutdown.ts)_
219
219
 
220
220
  ## `cpilot status`
221
221
 
@@ -229,5 +229,5 @@ DESCRIPTION
229
229
  Display node status and configuration settings
230
230
  ```
231
231
 
232
- _See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.10/src/commands/status.ts)_
232
+ _See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.11/src/commands/status.ts)_
233
233
  <!-- commandsstop -->
@@ -111,7 +111,9 @@
111
111
  "name": "project",
112
112
  "hasDynamicHelp": false,
113
113
  "multiple": false,
114
- "options": [],
114
+ "options": [
115
+ "hypergraph"
116
+ ],
115
117
  "type": "option"
116
118
  },
117
119
  "autostart": {
@@ -274,5 +276,5 @@
274
276
  ]
275
277
  }
276
278
  },
277
- "version": "0.0.10"
279
+ "version": "0.0.11"
278
280
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@constellation-network/node-pilot",
3
3
  "description": "An easy deployment and monitoring tool for Constellation nodes.",
4
- "version": "0.0.10",
4
+ "version": "0.0.11",
5
5
  "author": "Frank Fox",
6
6
  "bin": {
7
7
  "cpilot": "bin/run.js"
@@ -36,7 +36,10 @@ COPY dist/gl1.jar /app/jars/gl1.jar
36
36
  COPY dist/gl0.jar /app/jars/gl0.jar
37
37
 
38
38
  # Add health-check
39
- RUN npm install -g "@constellation-network/node-pilot-health-check"
39
+ #COPY ./health-check /health-check
40
+ #RUN chmod +x /health-check/bin/run.sh
41
+ #RUN chmod +x /health-check/bin/hydrate.sh
42
+ RUN npm install -g "@constellation-network/node-pilot-health-check@latest"
40
43
 
41
44
  # Add entrypoint
42
45
  COPY ./entrypoint.sh /app/entrypoint.sh
@@ -18,16 +18,17 @@ services:
18
18
  - "9000:9000" # Public HTTP
19
19
  - "9001:9001" # P2P HTTP
20
20
  volumes:
21
+ - ./gl0/data:/app/data
22
+ - ./gl0/logs:/app/logs
21
23
  - ./key.p12:/app/key.p12:ro
22
24
  - ./seedlist:/app/seedlist:ro
23
- - ./app-data/gl0-logs:/app/logs
24
- - ./app-data/gl0-data:/app/data
25
25
  healthcheck:
26
26
  test: ["CMD", "cpilotHC"]
27
+ # test: ["CMD", "/health-check/bin/run.sh"]
27
28
  interval: 15s
28
29
  retries: 1
29
30
  timeout: 15s
30
- start_period: 30s
31
+ start_period: 60s
31
32
  profiles: ["gl0"]
32
33
  labels:
33
34
  autoheal: "true"
@@ -42,9 +43,9 @@ services:
42
43
  - "9010:9010" # Public HTTP
43
44
  - "9011:9011" # P2P HTTP
44
45
  volumes:
46
+ - ./gl1/data:/app/data
47
+ - ./gl1/logs:/app/logs
45
48
  - ./key.p12:/app/key.p12:ro
46
- - ./app-data/gl1-logs:/app/logs
47
- - ./app-data/gl1-data:/app/data
48
49
  # healthcheck:
49
50
  # test: ["CMD", "/app/internal-health-check.sh"]
50
51
  # interval: 3s
@@ -3,7 +3,8 @@ Description=Constellation Network node auto_restart service
3
3
  After=multi-user.target
4
4
 
5
5
  [Service]
6
- Type=Simple
6
+ Type=simple
7
+ User=ubuntu
7
8
  ExecStartPre=%h/.node-pilot/scripts/restart_logger.sh
8
9
  ExecStart=cpilot restart --autostart
9
10
 
@@ -4,6 +4,7 @@ After=multi-user.target
4
4
 
5
5
  [Service]
6
6
  Type=simple
7
+ User=ubuntu
7
8
  ExecStartPre=%h/.node-pilot/scripts/update_logger.sh
8
9
  ExecStart=cpilot restart --update
9
10
  Restart=always