new sslproxy xai cli commands cerbot info and renewal

This commit is contained in:
2020-06-02 09:10:48 -04:00
parent 73ad921e3b
commit 764aa9c8ed
14 changed files with 196 additions and 53 deletions

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -e
#set -x
LETSENCRYPT_IMAGE=dkregistry.xai-corp.net:5000/xaicorp/acme-certbot
LETSENCRYPT_MOUNT=/opt/shared/letsencrypt-2-staging
export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
export LETSENCRYPT_MOUNT
export LETSENCRYPT_IMAGE
run() {
docker-compose \
-f docker-compose.tools.yml \
run test $@
}
run_help() {
docker-compose \
-f docker-compose.tools.yml \
run test --help $@
}
while getopts h name
do
case $name in
h) run_help $@;;
*) run $@;;
esac
done