kolla/docker/etcd/Dockerfile.j2
Jan Gutter c3905e4b4c
etcd: update to v3.4
* Updates etcd to v3.4

Change-Id: I4da94a1725f563d8a957a064573323708fdc87df
2023-08-07 12:42:43 +01:00

34 lines
1.2 KiB
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block etcd_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='etcd') }}
{% block etcd_repository_version %}
# NOTE(wszumski): It is suggested to upgrade one minor version at a time:
# https://github.com/etcd-io/website/blob/cf046546dec9e1dcea966dc21ea38027c3290e9a/content/en/docs/v3.4/upgrades/upgrade_3_4.md#upgrade-requirements
ARG etcd_version=v3.4.27
ARG etcd_url=https://github.com/etcd-io/etcd/releases/download/${etcd_version}/etcd-${etcd_version}-linux-{{debian_arch}}.tar.gz
{% endblock %}
RUN curl ${etcd_url} -o /tmp/etcd.tar.gz \
&& tar -C /usr/bin -xvz --strip-components=1 --wildcards '*/etcd' --wildcards '*/etcdctl' -f /tmp/etcd.tar.gz \
&& rm -f /tmp/etcd.tar.gz
COPY etcd_sudoers /etc/sudoers.d/kolla_etcd_sudoers
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 644 /usr/local/bin/kolla_extend_start \
&& chmod 750 /etc/sudoers.d \
&& chmod 440 /etc/sudoers.d/kolla_etcd_sudoers
{% block etcd_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER etcd