Skip to content

Commit

Permalink
Update le to use our python images (home-assistant#543)
Browse files Browse the repository at this point in the history
* Update le to use our python images

* Add helper for build

* Fix build
  • Loading branch information
pvizeli authored Mar 11, 2019
1 parent a532023 commit 012f2e6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
3 changes: 3 additions & 0 deletions letsencrypt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 3.0
- Use our Python base images with cerbot 0.32.0

## 2.3
- Update certbot to 0.30.2

Expand Down
11 changes: 7 additions & 4 deletions letsencrypt/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
ARG BUILD_FROM
FROM $BUILD_FROM

# Add env
ENV LANG C.UTF-8

# Setup base
RUN apk add --no-cache certbot
ARG CERTBOT_VERSION
RUN apk add --no-cache \
openssl libffi musl libstdc++ \
&& apk add --no-cache --virtual .build-dependencies \
g++ musl-dev openssl-dev libffi-dev \
&& pip3 install --no-cache-dir certbot==${CERTBOT_VERSION} \
&& apk del .build-dependencies

# Copy data
COPY run.sh /
Expand Down
12 changes: 12 additions & 0 deletions letsencrypt/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"build_from": {
"amd64": "homeassistant/amd64-base-python:3.7",
"i386": "homeassistant/i386-base-python:3.7",
"armhf": "homeassistant/armhf-base-python:3.7",
"armv7": "homeassistant/armv7-base-python:3.7",
"aarch64": "homeassistant/aarch64-base-python:3.7"
},
"args": {
"CERTBOT_VERSION": "0.32.0"
}
}
2 changes: 1 addition & 1 deletion letsencrypt/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Let's Encrypt",
"version": "2.3",
"version": "3.0",
"slug": "letsencrypt",
"description": "Manage certificate from Let's Encrypt",
"url": "https://home-assistant.io/addons/lets_encrypt/",
Expand Down

0 comments on commit 012f2e6

Please sign in to comment.