Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use requirements.txt to manage certbot/cryptography versions #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Builder

env:
BUILD_ARGS: "--test"
MONITORED_FILES: "build.yaml config.yaml Dockerfile rootfs"
MONITORED_FILES: "build.yaml config.yaml Dockerfile requirements.txt rootfs"

on:
push:
Expand Down
6 changes: 3 additions & 3 deletions iot-certbot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ARG \
CRYPTOGRAPHY_VERSION \
CERTBOT_VERSION

COPY requirements.txt /build/requirements.txt

# py3-pip is kept in the installation because otherwise it removes some dependencies
# that we need (six)
RUN apk add --no-cache --update \
Expand All @@ -28,9 +30,7 @@ RUN apk add --no-cache --virtual .build-dependencies \
RUN python3 -mvenv /opt/certbot
RUN /opt/certbot/bin/python -mpip install --no-cache-dir --find-links \
"https://wheels.home-assistant.io/alpine-$(cut -d '.' -f 1-2 < /etc/alpine-release)/${BUILD_ARCH}/" \
cryptography==${CRYPTOGRAPHY_VERSION} \
certbot==${CERTBOT_VERSION} \
certbot-dns-route53==${CERTBOT_VERSION}
-r /build/requirements.txt

FROM $BUILD_FROM

Expand Down
3 changes: 0 additions & 3 deletions iot-certbot/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ labels:
org.opencontainers.image.description: "Use AWS IOT and LetsEncrpyt for DNS challenge certs"
org.opencontainers.image.source: "https://github.com/offbyone/homeassistant-addons"
org.opencontainers.image.licenses: "BSD"
args:
CRYPTOGRAPHY_VERSION: 41.0.5
CERTBOT_VERSION: 2.7.4
3 changes: 3 additions & 0 deletions iot-certbot/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cryptography>=41.0.5
certbot>=2.7.4
certbot-dns-route53>=2.1
85 changes: 85 additions & 0 deletions iot-certbot/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --no-emit-index-url --no-emit-trusted-host requirements.in
#
acme==2.1.0
# via
# certbot
# certbot-dns-route53
boto3==1.26.45
# via certbot-dns-route53
botocore==1.29.45
# via
# boto3
# s3transfer
certbot==2.1.0
# via
# -r requirements.in
# certbot-dns-route53
certbot-dns-route53==2.1.0
# via -r requirements.in
certifi==2022.12.7
# via requests
cffi==1.15.1
# via cryptography
charset-normalizer==2.1.1
# via requests
configargparse==1.5.3
# via certbot
configobj==5.0.6
# via certbot
cryptography==39.0.0
# via
# -r requirements.in
# acme
# certbot
# josepy
# pyopenssl
distro==1.8.0
# via certbot
idna==3.4
# via requests
jmespath==1.0.1
# via
# boto3
# botocore
josepy==1.13.0
# via
# acme
# certbot
parsedatetime==2.6
# via certbot
pycparser==2.21
# via cffi
pyopenssl==23.0.0
# via
# acme
# josepy
pyrfc3339==1.1
# via
# acme
# certbot
python-dateutil==2.8.2
# via botocore
pytz==2022.7
# via
# acme
# certbot
# pyrfc3339
requests==2.28.1
# via acme
s3transfer==0.6.0
# via boto3
six==1.16.0
# via
# configobj
# python-dateutil
urllib3==1.26.13
# via
# botocore
# requests

# The following packages are considered to be unsafe in a requirements file:
# setuptools
Loading