summaryrefslogtreecommitdiff
path: root/docker/kuryr/kuryr-base/Dockerfile.j2
blob: 75cafdf0be28f1d6135e97b6745aed17820d603e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}

{% block kuryr_base_header %}{% endblock %}

{% import "macros.j2" as macros with context %}

{{ macros.configure_user(name='kuryr') }}

ADD kuryr-base-archive /kuryr-base-source

{% set kuryr_base_pip_packages = [
    '/kuryr-base'
] %}

COPY extend_start.sh /usr/local/bin/kolla_extend_start

# NOTE(Jeffrey4l): remove kuryr-lib constraint in upper-constraints.txt file.
# Otherwise, it will be failed.
RUN ln -s kuryr-base-source/* kuryr-base \
    && sed -i 's|^kuryr-lib===.*$||g' requirements/upper-constraints.txt \
    && {{ macros.install_pip(kuryr_base_pip_packages | customizable("pip_packages")) }} \
    && mkdir -p /etc/kuryr \
    && chmod 644 /usr/local/bin/kolla_extend_start

{% block kuryr_base_footer %}{% endblock %}