prometheus xai cli tool setup WIP

This commit is contained in:
2021-04-02 07:31:03 -04:00
parent 6fcc1866d4
commit 5b0746fcd6
15 changed files with 413 additions and 31 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
container=$(docker ps -qn1)
while getopts c: name
do
case $name in
c)
container=$OPTARG
;;
*)
;;
esac
done
shift $((OPTIND -1))
echo using container "${container}"
# shellcheck disable=SC2068
docker exec -it -u www-data "$container" $@