Skip to content

Commit f02ca09

Browse files
authored
merge main to develop (#68)
1 parent b5bd79f commit f02ca09

File tree

4 files changed

+54
-7
lines changed

4 files changed

+54
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ cd tron-docker
127127
```
128128

129129
### Start feature by trond tool
130-
We offer a `trond` script that allows developers to easily initiate features with a single command, enabling the community to quickly engage in TRON network development and interaction.
130+
We offer a `trond` command-line tool that allows developers to easily initiate features with a single command, enabling the community to quickly engage in TRON network development and interaction.
131131

132132
To build the `trond` command-line tool, simply run `build_trond.sh`.
133133
```sh

metric_monitor/docker-compose.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
version: '3.8'
2+
services:
3+
tron-node1:
4+
image: tronprotocol/java-tron:latest
5+
container_name: tron-node1
6+
networks:
7+
- tron_network
8+
deploy:
9+
resources:
10+
limits:
11+
memory: 16g
12+
ports:
13+
- "8090:8090" # for external http API request
14+
- "9527:9527" # used for metric API
15+
volumes:
16+
- ../conf:/java-tron/conf
17+
- ./datadir:/java-tron/data # mount a local directory to make the blocks data persistent.
18+
command: >
19+
-jvm "{-Xmx16g -Xms12g -XX:+UseConcMarkSweepGC -XX:+PrintGC}" -c ./conf/main_net_config.conf -d /java-tron/data
20+
21+
prometheus:
22+
image: prom/prometheus:latest
23+
container_name: prometheus
24+
networks:
25+
- tron_network
26+
deploy:
27+
resources:
28+
limits:
29+
memory: 1g
30+
ports:
31+
- "9090:9090" # used for external collect metrics
32+
volumes:
33+
- ./metric_conf/prometheus.yml:/etc/prometheus/prometheus.yml
34+
grafana:
35+
image: grafana/grafana-oss
36+
container_name: grafana
37+
networks:
38+
- tron_network
39+
deploy:
40+
resources:
41+
limits:
42+
memory: 1g
43+
ports:
44+
- "3000:3000"
45+
networks:
46+
tron_network:
47+
driver: bridge

private_net/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
deploy:
99
resources:
1010
limits:
11-
memory: 16g
11+
memory: 12g
1212
ports:
1313
- "8090:8090" # for external http API request
1414
- "50051:50051" # for external rpc API request
@@ -27,7 +27,7 @@ services:
2727
# deploy:
2828
# resources:
2929
# limits:
30-
# memory: 16g
30+
# memory: 12g
3131
# volumes:
3232
# - ../conf:/java-tron/conf
3333
# - ./logs/tron-witness2:/java-tron/logs
@@ -43,7 +43,7 @@ services:
4343
deploy:
4444
resources:
4545
limits:
46-
memory: 16g
46+
memory: 12g
4747
volumes:
4848
- ../conf:/java-tron/conf
4949
- ./logs/tron-node1:/java-tron/logs
@@ -58,7 +58,7 @@ services:
5858
# deploy:
5959
# resources:
6060
# limits:
61-
# memory: 16g
61+
# memory: 12g
6262
# volumes:
6363
# - ../conf:/java-tron/conf
6464
# - ./logs/tron-node2:/java-tron/logs

tools/docker/docker_env/check-install-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ check_docker_running() {
5050
sudo systemctl start docker
5151
sleep 5
5252
sudo usermod -aG docker "$USER"
53-
newgrp docker
54-
if ! docker info &> /dev/null; then
53+
if ! sudo docker info &> /dev/null; then
5554
echo "Failed to start Docker daemon"
5655
exit 1
5756
fi
57+
echo "Logout and log back in for the docker group change to take effect"
5858
fi
5959
fi
6060
echo "Docker daemon is running"

0 commit comments

Comments
 (0)