Skip to content

Commit

Permalink
certbotwrapper: allow to override certbot image
Browse files Browse the repository at this point in the history
  • Loading branch information
tlvu committed Jan 24, 2025
1 parent 207c790 commit e980e44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions birdhouse/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# (see also: 'check_default_vars' in 'birdhouse/read-configs.include.sh').

export BASH_IMAGE="bash:5.1.4"
export CERTBOT_IMAGE="certbot/certbot:v3.1.0"

# Root directory under which all data persistence should be nested under
export BIRDHOUSE_DATA_PERSIST_ROOT="/data"
Expand Down
5 changes: 3 additions & 2 deletions birdhouse/deployment/certbotwrapper
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ SAVED_PWD="`pwd`"

. "$THIS_DIR/../read-configs.include.sh"

# Get BIRDHOUSE_FQDN_PUBLIC, BIRDHOUSE_FQDN, BIRDHOUSE_SUPPORT_EMAIL, BIRDHOUSE_SSL_CERTIFICATE, BASH_IMAGE.
# Get BIRDHOUSE_FQDN_PUBLIC, BIRDHOUSE_FQDN, BIRDHOUSE_SUPPORT_EMAIL,
# BIRDHOUSE_SSL_CERTIFICATE, BASH_IMAGE, CERTBOT_IMAGE.
read_configs

CERT_DOMAIN="$BIRDHOUSE_FQDN_PUBLIC"
Expand Down Expand Up @@ -84,7 +85,7 @@ docker run --rm --name certbot \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
-v "/var/log/letsencrypt:/var/log/letsencrypt" \
-p 443:443 -p 80:80 \
certbot/certbot:v1.3.0 \
$CERTBOT_IMAGE \
$CERTBOT_OPTS \
"$@"
RC=$?
Expand Down

0 comments on commit e980e44

Please sign in to comment.