diff options
| author | Michal Jastrzebski (inc0) <michal.jastrzebski@intel.com> | 2015-08-20 21:59:16 +0200 |
|---|---|---|
| committer | inc0 <michal.jastrzebski@intel.com> | 2015-08-21 20:21:41 +0200 |
| commit | 598fe7bad1380547fef4a4354e194da56757767d (patch) | |
| tree | e3aabfac64c4dd3307c4f51ca1d229303870447e /docker_templates/base | |
| parent | fd9d11aeb47aeda4bed86edd8217dc99a09fe1cb (diff) | |
| download | kolla-598fe7bad1380547fef4a4354e194da56757767d.tar.gz kolla-598fe7bad1380547fef4a4354e194da56757767d.zip | |
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
Diffstat (limited to 'docker_templates/base')
| -rwxr-xr-x[-rw-r--r--] | docker_templates/base/Dockerfile.j2 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker_templates/base/Dockerfile.j2 b/docker_templates/base/Dockerfile.j2 index 2c5777e7e..f1e9ecdc3 100644..100755 --- 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'] %} |
