Update le to use our python images (#543)

* Update le to use our python images

* Add helper for build

* Fix build
This commit is contained in:
Pascal Vizeli
2019-03-11 16:26:05 +01:00
committed by GitHub
parent a532023544
commit 012f2e600e
4 changed files with 23 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
# Changelog # Changelog
## 3.0
- Use our Python base images with cerbot 0.32.0
## 2.3 ## 2.3
- Update certbot to 0.30.2 - Update certbot to 0.30.2

View File

@@ -1,11 +1,14 @@
ARG BUILD_FROM ARG BUILD_FROM
FROM $BUILD_FROM FROM $BUILD_FROM
# Add env
ENV LANG C.UTF-8
# Setup base # 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 data
COPY run.sh / COPY run.sh /

12
letsencrypt/build.json Normal file
View File

@@ -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"
}
}

View File

@@ -1,6 +1,6 @@
{ {
"name": "Let's Encrypt", "name": "Let's Encrypt",
"version": "2.3", "version": "3.0",
"slug": "letsencrypt", "slug": "letsencrypt",
"description": "Manage certificate from Let's Encrypt", "description": "Manage certificate from Let's Encrypt",
"url": "https://home-assistant.io/addons/lets_encrypt/", "url": "https://home-assistant.io/addons/lets_encrypt/",