Skip to content

Commit

Permalink
show_stats.sh | Version 1.0.202405051303
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhijie0327 committed May 5, 2024
1 parent a113199 commit b46b484
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions unbound/show_stats.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Parameter
OWNER="hezhijie0327"
REPO="unbound"
TAG="latest"

REDIS_OWNER="hezhijie0327"
REDIS_REPO="redis" # redis, valkey
REDIS_TAG="latest"

DOCKER_PATH="/docker/unbound"

docker run -it --rm --entrypoint=/${REDIS_REPO}-cli --net host \
${REDIS_OWNER}/${REDIS_REPO}:${REDIS_TAG} \
-p ${REDIS_PORT:-6379} \
info

docker run -it --rm --entrypoint=/unbound-control --net host \
-v ${DOCKER_PATH}/conf:/etc/unbound/conf \
${OWNER}/${REPO}:${TAG} \
-c "/etc/unbound/conf/unbound.conf" \
-s "127.0.0.1@8953" \
stats_noreset

0 comments on commit b46b484

Please sign in to comment.