Skip to content

Commit 020e2b6

Browse files
authored
Merge pull request #41 from blockopsnetwork/chore/update-installer-scripts
update installer script
2 parents a28944f + 4ba667e commit 020e2b6

File tree

3 files changed

+107
-51
lines changed

3 files changed

+107
-51
lines changed

ponos.yml.example

Lines changed: 16 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,24 @@ version: 1
33
api_endpoint: "https://api.nodeoperator.ai"
44
api_key: "your_api_key_here"
55

6+
version: 1
7+
8+
api_endpoint: "https://api.nodeoperator.ai"
9+
api_key: "your_api_key_here"
10+
11+
integrations:
12+
github:
13+
token: "ghp_your_github_token_here"
14+
15+
slack:
16+
token: "xoxb_your_slack_bot_token_here"
17+
signing_key: "your_slack_signing_secret_here"
18+
19+
620
integrations:
721
github:
822
token: "ghp_your_github_token_here"
9-
app_id: ""
10-
install_id: ""
11-
pem_key: ""
12-
bot_name: "ponos-bot"
13-
mcp_url: "http://localhost:3001"
23+
1424

1525
slack:
1626
token: "xoxb_your_slack_bot_token_here"
@@ -41,40 +51,4 @@ diagnostics:
4151
service: "your-service-name"
4252
log_tail: 500
4353
eval_interval: 2
44-
45-
server:
46-
port: "8080"
47-
enable_release_listener: false
48-
projects:
49-
# Ethereum consensus client example
50-
- network: ethereum
51-
project_name: eth-consensus-client
52-
owner: your-org
53-
name: ethereum-deployments
54-
branch: main
55-
paths:
56-
- "deployments/prysm/values.yaml"
57-
- "deployments/lighthouse/values.yaml"
58-
- "k8s/ethereum/prysm-deployment.yaml"
59-
60-
# Ethereum execution client example
61-
- network: ethereum
62-
project_name: eth-execution-client
63-
owner: your-org
64-
name: ethereum-deployments
65-
branch: main
66-
paths:
67-
- "deployments/geth/values.yaml"
68-
- "deployments/nethermind/values.yaml"
69-
- "k8s/ethereum/geth-deployment.yaml"
70-
71-
# Polkadot validator example
72-
- network: polkadot
73-
project_name: polkadot-validator
74-
owner: your-org
75-
name: polkadot-infrastructure
76-
branch: main
77-
paths:
78-
- "helm/polkadot/values.yaml"
79-
- "k8s/polkadot-deployment.yaml"
80-
- "docker-compose/polkadot.yml"
54+

ponos.yml.full.example

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
version: 1
2+
3+
api_endpoint: "https://api.nodeoperator.ai"
4+
api_key: "your_api_key_here"
5+
6+
integrations:
7+
github:
8+
token: "ghp_your_github_token_here"
9+
app_id: ""
10+
install_id: ""
11+
pem_key: ""
12+
bot_name: "ponos-bot"
13+
mcp_url: "http://localhost:3001"
14+
15+
slack:
16+
token: "xoxb_your_slack_bot_token_here"
17+
signing_key: "your_slack_signing_secret_here"
18+
verify_token: ""
19+
channel: "sre-tasks"
20+
21+
# Telescope observability (for node metrics, logs, and blockchain client metrics - see https://github.com/blockopsnetwork/telescope)
22+
telescope:
23+
project_id: ""
24+
project_name: "your-project-name"
25+
prometheus_url: "https://your-prometheus-endpoint"
26+
prometheus_username: ""
27+
prometheus_password: ""
28+
loki_url: "https://your-loki-endpoint"
29+
loki_username: ""
30+
loki_password: ""
31+
32+
diagnostics:
33+
enabled: true
34+
provider: "telescope" # Options: telescope, kubernetes
35+
github:
36+
owner: "your-org"
37+
repo: "infrastructure-issues"
38+
slack:
39+
channel: "sre-tasks"
40+
monitoring:
41+
service: "your-service-name"
42+
log_tail: 500
43+
eval_interval: 2
44+
45+
server:
46+
port: "8080"
47+
enable_release_listener: false
48+
projects:
49+
# Ethereum consensus client example
50+
- network: ethereum
51+
project_name: eth-consensus-client
52+
owner: your-org
53+
name: ethereum-deployments
54+
branch: main
55+
paths:
56+
- "deployments/prysm/values.yaml"
57+
- "deployments/lighthouse/values.yaml"
58+
- "k8s/ethereum/prysm-deployment.yaml"
59+
60+
# Ethereum execution client example
61+
- network: ethereum
62+
project_name: eth-execution-client
63+
owner: your-org
64+
name: ethereum-deployments
65+
branch: main
66+
paths:
67+
- "deployments/geth/values.yaml"
68+
- "deployments/nethermind/values.yaml"
69+
- "k8s/ethereum/geth-deployment.yaml"
70+
71+
# Polkadot validator example
72+
- network: polkadot
73+
project_name: polkadot-validator
74+
owner: your-org
75+
name: polkadot-infrastructure
76+
branch: main
77+
paths:
78+
- "helm/polkadot/values.yaml"
79+
- "k8s/polkadot-deployment.yaml"
80+
- "docker-compose/polkadot.yml"

scripts/install.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ confirm() {
5353
return 1
5454
fi
5555
printf '%s [y/N] ' "$1"
56-
read -r answer
56+
if [ -t 0 ]; then
57+
read -r answer
58+
elif [ -r /dev/tty ]; then
59+
read -r answer < /dev/tty
60+
else
61+
answer=""
62+
fi
5763
case "$answer" in
5864
y|Y|yes|YES) return 0 ;;
5965
*) return 1 ;;
@@ -238,14 +244,10 @@ fi
238244

239245
config_target="${HOME}/.config/ponos/ponos.yml"
240246
if [ ! -f "ponos.yml" ] && [ ! -f "$config_target" ] && [ ! -f "/etc/ponos/ponos.yml" ] && [ -n "$config_example" ] && [ -f "$config_example" ]; then
241-
if confirm "Create ${config_target} from example config?"; then
242-
mkdir -p "$(dirname "$config_target")"
243-
cp "$config_example" "$config_target"
244-
log "Config created at ${config_target}"
245-
log "Set PONOS_CONFIG_PATH to point to a different config if needed."
246-
else
247-
log "Skipping config creation. Place ponos.yml in your working directory or set PONOS_CONFIG_PATH."
248-
fi
247+
mkdir -p "$(dirname "$config_target")"
248+
cp "$config_example" "$config_target"
249+
log "Config created at ${config_target}"
250+
log "Set PONOS_CONFIG_PATH to point to a different config if needed."
249251
fi
250252

251253
log "Example config: https://github.com/blockopsnetwork/ponos/blob/main/ponos.yml.example"

0 commit comments

Comments
 (0)