aboutsummaryrefslogtreecommitdiff
path: root/kolla/docker/bifrost/bifrost-deploy/Dockerfile.j2
blob: 3cb3d82a8105c7ef20c6f81a8ea09cb039c45741 (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
29
30
31
32
33
34
35
36
37
38
FROM {{ namespace }}/{{ image_prefix }}bifrost-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}"
{% endblock %}

{% block bifrost_deploy_header %}{% endblock %}

ENV container docker

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

{{ macros.kolla_enable_base_repos() }}

RUN rm -f $(find /lib/systemd/system/sysinit.target.wants/ ! -name systemd-tmpfiles-setup.service -type l); \
    rm -f /lib/systemd/system/multi-user.target.wants/*; \
    rm -f /etc/systemd/system/*.wants/*; \
    rm -f /lib/systemd/system/local-fs.target.wants/*; \
    rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
    rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
    rm -f /lib/systemd/system/basic.target.wants/*; \
    rm -f /lib/systemd/system/anaconda.target.wants/*;

{% set bifrost_deploy_packages = [
    'e2fsprogs',
    'systemd-sysv',
] %}

{{ macros.install_packages(bifrost_deploy_packages | customizable("packages")) }}

# Clear any customisation by Kolla to entrypoint & command
ENTRYPOINT []
CMD [ "/sbin/init" ]

{{ macros.kolla_patch_sources() }}

{% block bifrost_deploy_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ macros.kolla_cleanup_repos() }}