From 598fe7bad1380547fef4a4354e194da56757767d Mon Sep 17 00:00:00 2001 From: "Michal Jastrzebski (inc0)" Date: Thu, 20 Aug 2015 21:59:16 +0200 Subject: Add custom code to base docker templates Sometimes you need custom code in Docerfiles to solve for example proxy problems or preconfigure base image in some specific way. With this commit you can insert content of custom file to the beggining of base Dockerfile to provide these changes Partially-implements: bp rhel-based-image-support Partially-implements: bp add-proxy-to-dockerfiles Partially-implements: bp build-script Change-Id: Idbfec764aad627f5c00dc09c4854d5fa1c5ac9cf --- docker_templates/base/Dockerfile.j2 | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 docker_templates/base/Dockerfile.j2 (limited to 'docker_templates/base') diff --git a/docker_templates/base/Dockerfile.j2 b/docker_templates/base/Dockerfile.j2 old mode 100644 new mode 100755 index 2c5777e7e..f1e9ecdc3 --- a/docker_templates/base/Dockerfile.j2 +++ b/docker_templates/base/Dockerfile.j2 @@ -1,6 +1,8 @@ FROM {{ base_distro }}:{{ base_distro_tag }} MAINTAINER Kolla Project (https://launchpad.net/kolla) +{{ include_header }} + {% if base_distro in ['fedora', 'centos', 'oraclelinux'] %} {% if install_type == 'binary' %} {% if base_distro in ['centos', 'oraclelinux'] %} -- cgit v1.2.3