From e62fe91e9e58c1ce2e8c4216ffc41407e8f017b6 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Wed, 24 Nov 2021 13:46:37 -0700 Subject: [PATCH] Replace DO stuff with GCP equivalents --- Dockerfile | 4 ++-- README.md | 6 +++--- new-domain | 8 ++++---- renew | 0 4 files changed, 9 insertions(+), 9 deletions(-) mode change 100644 => 100755 renew diff --git a/Dockerfile b/Dockerfile index 71c46cb..674226f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM certbot/dns-digitalocean:latest +FROM certbot/dns-google:latest COPY new-domain /usr/bin/new-domain COPY renew /etc/periodic/monthly/renew -ENTRYPOINT /usr/sbin/crond -f +ENTRYPOINT /usr/sbin/crond -fd0 diff --git a/README.md b/README.md index 4e50d8d..7f7c817 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Certbot DigitalOcean +# Certbot Google -This container wraps the dns-digitalocean certbot container with an additional +This container wraps the dns-google certbot container with an additional script to help with requesting new domains: [new-domain](./new-domain). When using, make sure to mount the following folders: @@ -9,5 +9,5 @@ Mount|Note ---|--- `/etc/letsencrypt`|Used to store requested certs `/var/lib/letsencrypt`|Needed by LE -`/root/digitalocean.ini`|Needed for authentication with DO +`/root/google-cloud-key.json`|Needed for authentication with GCP diff --git a/new-domain b/new-domain index 9b7a42e..65c6217 100755 --- a/new-domain +++ b/new-domain @@ -1,13 +1,13 @@ #!/usr/bin/env sh -INI_FILE="/root/digitalocean.ini" +KEY_FILE="/root/google-cloud-key.json" -if [ ! -f $INI_FILE ]; then - echo "ERROR: digitalocean credentials not present at $INI_FILE" +if [ ! -f $KEY_FILE ]; then + echo "ERROR: google cloud credentials not present at $KEY_FILE" exit 1 fi -CMD="certbot certonly --dns-digitalocean --dns-digitalocean-credentials $INI_FILE --dns-digitalocean-propagation-seconds 90" +CMD="certbot certonly --dns-google --dns-google-credentials $KEY_FILE --dns-google-propagation-seconds 90" for domain in "$@"; do CMD="$CMD -d $domain" diff --git a/renew b/renew old mode 100644 new mode 100755