Skip to content

Commit

Permalink
fix harmony.sh RUN command
Browse files Browse the repository at this point in the history
update README_HARMONY.md
enable prometheus for harmony.sh
  • Loading branch information
cventastic committed Jan 24, 2022
1 parent 8da3f18 commit 52a75ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bootstrap_skript/harmony.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

RUN mkdir -p /harmony/harmony_db_0 /harmony/harmony_db_1 /harmony/harmony_db_2 /harmony/harmony_db_3 /harmony/log /harmony/.hmy
mkdir -p /harmony/harmony_db_0 /harmony/harmony_db_1 /harmony/harmony_db_2 /harmony/harmony_db_3 /harmony/log /harmony/.hmy

cat<<-EOF > rclone.conf
[release]
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.harmony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.1'
services:
harmony-mainnet:
build: ./harmony/build
command: bash -c "/harmony.sh && /binary --log.dir /harmony/log --run.shard 1 --dns.zone t.hmny.io --http.ip 0.0.0.0 --datadir /harmony"
command: bash -c "/harmony.sh && /binary --log.dir /harmony/log --run.shard 1 --dns.zone t.hmny.io --http.ip 0.0.0.0 --datadir /harmony --prometheus true"
sysctls:
net.core.somaxconn: 1024
# net.core.netdev_max_backlog: 65536
Expand Down Expand Up @@ -58,7 +58,7 @@ services:
image: prom/prometheus:v2.30.3
container_name: prometheus
volumes:
- ./prometheus/prometheus-rpc.yml:/etc/prometheus/prometheus.yml
- ./prometheus/prometheus-harmony.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
Expand Down
4 changes: 3 additions & 1 deletion harmony/README_HARMONY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ harmony/log
HARMONY QUERY
```
curl --location --request POST 'https://$DOMAIN/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "hmy_latestHeader", "params": [], "id": 1}'
```
```

[HMY CLI Flags](https://docs.harmony.one/home/network/validators/node-setup/installing-updating/installing-node/using-binary#option-2-setup-using-flag-parsing)

0 comments on commit 52a75ea

Please sign in to comment.