kolla/docker/octavia/octavia-api/Dockerfile.j2
Marcin Juszkiewicz 016c5ed30c adjust permissions on _extend_start files (part II)
Tim Shearer started it in 1d96a2bbe1.

Since all extend_start files are sourced rather than executed, the executable
bits are now cleared throughout the project.

Change-Id: Ia1797c32fc6a35f9f077c673abf4d8e16e51a760
2022-04-22 11:34:55 +02:00

30 lines
808 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}octavia-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block octavia_api_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% set octavia_api_packages = [
] %}
{% set octavia_api_plugins_pip_packages = [
'/plugins/*'
] %}
ADD plugins-archive /
COPY extend_start.sh /usr/local/bin/kolla_octavia_extend_start
RUN if [ "$(ls /plugins)" ]; then \
{{ macros.install_pip(octavia_api_plugins_pip_packages) }} ; \
fi \
&& chmod 644 /usr/local/bin/kolla_octavia_extend_start
{{ macros.install_packages(octavia_api_packages | customizable("packages")) }}
{% block octavia_api_footer %}{% endblock %}
{% block footer %}{% endblock %}