kolla/docker/letsencrypt/letsencrypt-lego/Dockerfile.j2
Michal Nasiadka 750a137815 Move curl sources to sources.py
Move most curl sources to sources.py, so it can be automatically
updated in future.

This also makes overriding the versions/locations/sha256 easier.

Change-Id: Ib3497fe96162ae190e5c113cacaaa3ef8334f590
2024-02-21 08:26:52 +00:00

40 lines
1.2 KiB
Django/Jinja
Executable File

FROM {{ namespace }}/{{ image_prefix }}letsencrypt-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block letsencrypt_lego_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='letsencrypt', shell='/bin/bash') }}
{% if base_package_type == 'rpm' %}
{% set letsencrypt_lego_packages = [
'openssh-clients',
'cronie',
'rsync'
] %}
{% elif base_package_type == 'deb' %}
{% set letsencrypt_lego_packages = [
'openssh-client',
'cron',
'rsync'
] %}
{% endif %}
{{ macros.install_packages(letsencrypt_lego_packages | customizable("packages")) }}
{% block letsencrypt_lego_install %}
ADD letsencrypt-lego-archive /lego-source
RUN cp -r /lego-source/lego /opt/
{% endblock %}
COPY letsencrypt-certificates.sh /usr/bin/letsencrypt-certificates
COPY sync-and-update-certificate.sh /usr/bin/sync-and-update-certificate
RUN chmod +x /usr/bin/letsencrypt-certificates /usr/bin/sync-and-update-certificate
{% block letsencrypt_lego_footer %}{% endblock %}
{% block footer %}{% endblock %}