Skip to content

Commit

Permalink
ethd can stop/restart individual services (eth-educators#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Jul 7, 2023
1 parent a9f2b9f commit 8f0122b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
18 changes: 9 additions & 9 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -1619,11 +1619,11 @@ run() {
}

stop() {
docompose down --remove-orphans
docompose down --remove-orphans "$@"
}

down() {
stop
stop "$@"
}

terminate() {
Expand All @@ -1635,7 +1635,7 @@ terminate() {
esac
done

down
stop
# In this case I want the word splitting, so rm can remove all volumes
# shellcheck disable=SC2046
dodocker volume rm $(dodocker volume ls -q -f "name=$(basename "$(realpath .)")")
Expand All @@ -1645,7 +1645,7 @@ terminate() {
}

restart() {
stop
stop "$@"
start
}

Expand Down Expand Up @@ -2363,13 +2363,13 @@ printhelp() {
echo " update [--refresh-targets] "
echo " updates all client versions and eth-docker itself"
echo " --refresh-targets will reset your custom build targets in .env to defaults"
echo " up (or start)"
echo " up|start"
echo " starts the Ethereum node, or restarts containers that had their image or"
echo " configuration changed"
echo " down (or stop)"
echo " stops the Ethereum node"
echo " restart"
echo " restarts the Ethereum node, a combination of down and up"
echo " down|stop [service-name]"
echo " stops the Ethereum node, or a specific service by name"
echo " restart [service-name]"
echo " restarts the Ethereum node, or a specific service by name, a combination of down and up"
echo " version"
echo " prints the version(s) of currently running client(s)"
echo " logs"
Expand Down
11 changes: 0 additions & 11 deletions grafana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ services:
entrypoint: choose-config.sh
command: ["/bin/prometheus", "--storage.tsdb.path=/prometheus", "--web.console.libraries=/usr/share/prometheus/console_libraries", "--web.console.templates=/usr/share/prometheus/consoles"]
<<: *logging
depends_on:
- node-exporter
- blackbox-exporter
- json-exporter
- cryptowat-exporter
- cadvisor
- ethereum-metrics-exporter

ethereum-metrics-exporter:
restart: "unless-stopped"
Expand Down Expand Up @@ -145,10 +138,6 @@ services:
- grafana-data:/var/lib/grafana
- grafana-config:/etc/grafana
- /etc/localtime:/etc/localtime:ro
depends_on:
- prometheus
- loki
- promtail
entrypoint: ["provision-dashboards.sh"]
command: /run.sh
<<: *logging
Expand Down

0 comments on commit 8f0122b

Please sign in to comment.