aboutsummaryrefslogtreecommitdiff
path: root/kolla/docker/bifrost/bifrost-deploy/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/docker/bifrost/bifrost-deploy/Dockerfile.j2')
-rw-r--r--kolla/docker/bifrost/bifrost-deploy/Dockerfile.j235
1 files changed, 35 insertions, 0 deletions
diff --git a/kolla/docker/bifrost/bifrost-deploy/Dockerfile.j2 b/kolla/docker/bifrost/bifrost-deploy/Dockerfile.j2
new file mode 100644
index 000000000..04fc733fc
--- /dev/null
+++ b/kolla/docker/bifrost/bifrost-deploy/Dockerfile.j2
@@ -0,0 +1,35 @@
+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 %}
+
+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 %}