Skip to content

Commit

Permalink
build(DOCKER): add backports, pin dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Nov 17, 2023
1 parent 9be60be commit 2974825
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .vale/Vocab/smtp/accept.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
aws|AWS
backports
certbot
cloudflare|Cloudflare
dev|Dev
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ RUN mkdir -p certbot /usr/local/share/certs/providers /usr/local/share/certs/scr
COPY providers/"${PROVIDER}".bash /usr/local/share/certs/providers
COPY scripts/*.bash /usr/local/share/certs/scripts

# Add Backports
RUN printf "deb http://httpredir.debian.org/debian bullseye-backports main\ndeb-src http://httpredir.debian.org/debian bullseye-backports main" \
> /etc/apt/sources.list.d/backports.list

RUN apt-get update \
&& \
apt-get install -y --no-install-recommends \
certbot \
jq \
certbot=1.* \
jq=1.* \
&& \
bash -c " \
source /usr/local/share/certs/providers/${PROVIDER}.bash \
Expand Down
4 changes: 3 additions & 1 deletion providers/aws.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ provider_create() {
}

provider_dependencies() {
apt-get install -y --no-install-recommends awscli python3-certbot-dns-route53
apt-get install -y --no-install-recommends \
awscli=1.* \
python3-certbot-dns-route53=1.*
}

provider_dkim() {
Expand Down
5 changes: 4 additions & 1 deletion providers/cloudflare.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ provider_create() {
}

provider_dependencies() {
apt-get install -y --no-install-recommends curl python3-certbot-dns-cloudflare
apt-get install -y --no-install-recommends \
curl=7.88.* \
libcurl4=7.88.* \
python3-certbot-dns-cloudflare=1.*
}

provider_dkim() {
Expand Down

0 comments on commit 2974825

Please sign in to comment.