23 lines
462 B
Bash
Executable File
23 lines
462 B
Bash
Executable File
#!/usr/bin/env bash
|
|
echo -e TODO: make this work!
|
|
set -e
|
|
set -x
|
|
|
|
LETSENCRYPT_IMAGE=dkregistry.xai-corp.net:5000/xaicorp/acme-certbot
|
|
LETSENCRYPT_MOUNT=/opt/shared/letsencrypt-2-staging
|
|
|
|
if [ "$1" == 'prod' ]; then
|
|
LETSENCRYPT_MOUNT=/opt/shared/letsencrypt-2
|
|
fi
|
|
|
|
|
|
|
|
export LETSENCRYPT_MOUNT
|
|
export LETSENCRYPT_IMAGE
|
|
export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
|
|
|
|
# shellcheck disable=SC2068
|
|
docker-compose \
|
|
-f docker-compose.tools.yml \
|
|
run certificates
|