aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Belogrudov <vladislav.belogrudov@oracle.com>2015-08-28 13:17:41 +0300
committerVladislav Belogrudov <vladislav.belogrudov@oracle.com>2015-08-28 13:17:41 +0300
commit630f437576c81c829f6d74cc33dcf830bbc89bef (patch)
tree1b7ead0e5ed11594d5e6549cdc8971683b06a66e
parent55e6e1f8d2c2ca5ae98f7c84fa0bf8afddbcd4f0 (diff)
downloadkolla-630f437576c81c829f6d74cc33dcf830bbc89bef.tar.gz
kolla-630f437576c81c829f6d74cc33dcf830bbc89bef.zip
Add custom footer section to final image Dockefiles
This patch allows to add instructions to final images like setting runtime environment variables or deleting build time HTTP proxies Change-Id: I23ad325e0898d77804a22038ddc618e1e49afd88 Partially-Implements: blueprint add-proxy-to-dockerfiles
-rw-r--r--docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j22
-rw-r--r--docker_templates/ceilometer/ceilometer-api/Dockerfile.j22
-rw-r--r--docker_templates/ceilometer/ceilometer-central/Dockerfile.j22
-rw-r--r--docker_templates/ceilometer/ceilometer-collector/Dockerfile.j22
-rw-r--r--docker_templates/ceilometer/ceilometer-compute/Dockerfile.j22
-rw-r--r--docker_templates/ceilometer/ceilometer-notification/Dockerfile.j22
-rw-r--r--docker_templates/cinder/cinder-api/Dockerfile.j22
-rw-r--r--docker_templates/cinder/cinder-backup/Dockerfile.j22
-rw-r--r--docker_templates/cinder/cinder-scheduler/Dockerfile.j22
-rw-r--r--docker_templates/cinder/cinder-volume/Dockerfile.j22
-rw-r--r--docker_templates/data/Dockerfile.j22
-rw-r--r--docker_templates/designate/designate-api/Dockerfile.j22
-rw-r--r--docker_templates/designate/designate-backend-bind9/Dockerfile.j22
-rw-r--r--docker_templates/designate/designate-central/Dockerfile.j22
-rw-r--r--docker_templates/designate/designate-mdns/Dockerfile.j22
-rw-r--r--docker_templates/designate/designate-poolmanager/Dockerfile.j22
-rw-r--r--docker_templates/designate/designate-sink/Dockerfile.j22
-rw-r--r--docker_templates/galera/Dockerfile.j22
-rw-r--r--docker_templates/glance/glance-api/Dockerfile.j22
-rw-r--r--docker_templates/glance/glance-registry/Dockerfile.j22
-rw-r--r--docker_templates/gnocchi/gnocchi-api/Dockerfile.j22
-rw-r--r--docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j22
-rwxr-xr-xdocker_templates/haproxy/Dockerfile.j22
-rw-r--r--docker_templates/heat/heat-api-cfn/Dockerfile.j22
-rw-r--r--docker_templates/heat/heat-api/Dockerfile.j22
-rw-r--r--docker_templates/heat/heat-engine/Dockerfile.j22
-rw-r--r--docker_templates/horizon/Dockerfile.j22
-rw-r--r--docker_templates/ironic/ironic-api/Dockerfile.j22
-rw-r--r--docker_templates/ironic/ironic-conductor/Dockerfile.j22
-rw-r--r--docker_templates/ironic/ironic-discoverd/Dockerfile.j22
-rw-r--r--docker_templates/keepalived/Dockerfile.j22
-rw-r--r--docker_templates/keystone/Dockerfile.j22
-rw-r--r--docker_templates/kolla-ansible/Dockerfile.j22
-rw-r--r--docker_templates/magnum/magnum-api/Dockerfile.j22
-rw-r--r--docker_templates/magnum/magnum-conductor/Dockerfile.j22
-rw-r--r--docker_templates/memcached/Dockerfile.j22
-rw-r--r--docker_templates/mongodb/Dockerfile.j22
-rw-r--r--docker_templates/murano/murano-api/Dockerfile.j22
-rw-r--r--docker_templates/murano/murano-engine/Dockerfile.j22
-rw-r--r--docker_templates/neutron/neutron-agents/Dockerfile.j22
-rw-r--r--docker_templates/neutron/neutron-linuxbridge-agent/Dockerfile.j22
-rw-r--r--docker_templates/neutron/neutron-openvswitch-agent/Dockerfile.j22
-rw-r--r--docker_templates/neutron/neutron-server/Dockerfile.j22
-rw-r--r--docker_templates/nova/nova-api/Dockerfile.j22
-rw-r--r--docker_templates/nova/nova-compute/Dockerfile.j22
-rw-r--r--docker_templates/nova/nova-conductor/Dockerfile.j22
-rw-r--r--docker_templates/nova/nova-consoleauth/Dockerfile.j22
-rw-r--r--docker_templates/nova/nova-libvirt/Dockerfile.j22
-rw-r--r--docker_templates/nova/nova-network/Dockerfile.j22
-rw-r--r--docker_templates/nova/nova-novncproxy/Dockerfile.j22
-rw-r--r--docker_templates/nova/nova-scheduler/Dockerfile.j22
-rw-r--r--docker_templates/openvswitch/ovs-db-server/Dockerfile.j22
-rw-r--r--docker_templates/openvswitch/ovs-vswitchd/Dockerfile.j22
-rw-r--r--docker_templates/rabbitmq/Dockerfile.j22
-rw-r--r--docker_templates/swift/swift-account-server/Dockerfile.j22
-rw-r--r--docker_templates/swift/swift-container-server/Dockerfile.j22
-rw-r--r--docker_templates/swift/swift-object-auditor/Dockerfile.j22
-rw-r--r--docker_templates/swift/swift-object-expirer/Dockerfile.j22
-rw-r--r--docker_templates/swift/swift-object-replicator/Dockerfile.j22
-rw-r--r--docker_templates/swift/swift-object-server/Dockerfile.j22
-rw-r--r--docker_templates/swift/swift-object-updater/Dockerfile.j22
-rw-r--r--docker_templates/swift/swift-proxy-server/Dockerfile.j22
-rw-r--r--docker_templates/zaqar/Dockerfile.j22
-rwxr-xr-xkolla/cmd/build.py8
64 files changed, 134 insertions, 0 deletions
diff --git a/docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2
index bb5396559..aa62562ac 100644
--- a/docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2
+++ b/docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/ceilometer/ceilometer-api/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-api/Dockerfile.j2
index cf9150af4..805e5e8eb 100644
--- a/docker_templates/ceilometer/ceilometer-api/Dockerfile.j2
+++ b/docker_templates/ceilometer/ceilometer-api/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/ceilometer/ceilometer-central/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-central/Dockerfile.j2
index b5322b397..b45c5fac3 100644
--- a/docker_templates/ceilometer/ceilometer-central/Dockerfile.j2
+++ b/docker_templates/ceilometer/ceilometer-central/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/ceilometer/ceilometer-collector/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-collector/Dockerfile.j2
index 44f10d617..6f425e855 100644
--- a/docker_templates/ceilometer/ceilometer-collector/Dockerfile.j2
+++ b/docker_templates/ceilometer/ceilometer-collector/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2
index c77174381..0487af710 100644
--- a/docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2
+++ b/docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2
@@ -16,3 +16,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/ceilometer/ceilometer-notification/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-notification/Dockerfile.j2
index af220a371..67fcfb50e 100644
--- a/docker_templates/ceilometer/ceilometer-notification/Dockerfile.j2
+++ b/docker_templates/ceilometer/ceilometer-notification/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/cinder/cinder-api/Dockerfile.j2 b/docker_templates/cinder/cinder-api/Dockerfile.j2
index 97ad23ac0..196f93baf 100644
--- a/docker_templates/cinder/cinder-api/Dockerfile.j2
+++ b/docker_templates/cinder/cinder-api/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/cinder/cinder-backup/Dockerfile.j2 b/docker_templates/cinder/cinder-backup/Dockerfile.j2
index 8ef8c045a..fa331b195 100644
--- a/docker_templates/cinder/cinder-backup/Dockerfile.j2
+++ b/docker_templates/cinder/cinder-backup/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/cinder/cinder-scheduler/Dockerfile.j2 b/docker_templates/cinder/cinder-scheduler/Dockerfile.j2
index 8ef8c045a..fa331b195 100644
--- a/docker_templates/cinder/cinder-scheduler/Dockerfile.j2
+++ b/docker_templates/cinder/cinder-scheduler/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/cinder/cinder-volume/Dockerfile.j2 b/docker_templates/cinder/cinder-volume/Dockerfile.j2
index 3e708be8a..6393798bd 100644
--- a/docker_templates/cinder/cinder-volume/Dockerfile.j2
+++ b/docker_templates/cinder/cinder-volume/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/data/Dockerfile.j2 b/docker_templates/data/Dockerfile.j2
index 18933ef55..7fecdb068 100644
--- a/docker_templates/data/Dockerfile.j2
+++ b/docker_templates/data/Dockerfile.j2
@@ -2,3 +2,5 @@ FROM {{ base_distro }}:{{ base_distro_tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
CMD /bin/sleep infinity
+
+{{ include_footer }}
diff --git a/docker_templates/designate/designate-api/Dockerfile.j2 b/docker_templates/designate/designate-api/Dockerfile.j2
index 203d6f0ff..75f4b06ee 100644
--- a/docker_templates/designate/designate-api/Dockerfile.j2
+++ b/docker_templates/designate/designate-api/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/designate/designate-backend-bind9/Dockerfile.j2 b/docker_templates/designate/designate-backend-bind9/Dockerfile.j2
index 4b215f8f0..06f86c043 100644
--- a/docker_templates/designate/designate-backend-bind9/Dockerfile.j2
+++ b/docker_templates/designate/designate-backend-bind9/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/designate/designate-central/Dockerfile.j2 b/docker_templates/designate/designate-central/Dockerfile.j2
index e90c3bb2e..771ff3c68 100644
--- a/docker_templates/designate/designate-central/Dockerfile.j2
+++ b/docker_templates/designate/designate-central/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/designate/designate-mdns/Dockerfile.j2 b/docker_templates/designate/designate-mdns/Dockerfile.j2
index c93f1d956..cc5f5fb89 100644
--- a/docker_templates/designate/designate-mdns/Dockerfile.j2
+++ b/docker_templates/designate/designate-mdns/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/designate/designate-poolmanager/Dockerfile.j2 b/docker_templates/designate/designate-poolmanager/Dockerfile.j2
index 5d1dabdda..0fc968b90 100644
--- a/docker_templates/designate/designate-poolmanager/Dockerfile.j2
+++ b/docker_templates/designate/designate-poolmanager/Dockerfile.j2
@@ -17,3 +17,5 @@ COPY start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/designate/designate-sink/Dockerfile.j2 b/docker_templates/designate/designate-sink/Dockerfile.j2
index f74e36bbe..c0ea23b2d 100644
--- a/docker_templates/designate/designate-sink/Dockerfile.j2
+++ b/docker_templates/designate/designate-sink/Dockerfile.j2
@@ -16,3 +16,5 @@ COPY start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/galera/Dockerfile.j2 b/docker_templates/galera/Dockerfile.j2
index 7856a7f24..acbb9bc51 100644
--- a/docker_templates/galera/Dockerfile.j2
+++ b/docker_templates/galera/Dockerfile.j2
@@ -46,3 +46,5 @@ COPY config-external.sh /opt/kolla/
COPY start.sh /
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/glance/glance-api/Dockerfile.j2 b/docker_templates/glance/glance-api/Dockerfile.j2
index f652822f5..e603a6c36 100644
--- a/docker_templates/glance/glance-api/Dockerfile.j2
+++ b/docker_templates/glance/glance-api/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/glance/glance-registry/Dockerfile.j2 b/docker_templates/glance/glance-registry/Dockerfile.j2
index f652822f5..e603a6c36 100644
--- a/docker_templates/glance/glance-registry/Dockerfile.j2
+++ b/docker_templates/glance/glance-registry/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 b/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2
index 9bb144ed7..9ca70113c 100644
--- a/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2
+++ b/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2
@@ -17,3 +17,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2 b/docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2
index 446c47d1c..99f1374a2 100644
--- a/docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2
+++ b/docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/haproxy/Dockerfile.j2 b/docker_templates/haproxy/Dockerfile.j2
index 1a40d5d93..2858f436a 100755
--- a/docker_templates/haproxy/Dockerfile.j2
+++ b/docker_templates/haproxy/Dockerfile.j2
@@ -23,3 +23,5 @@ COPY start.sh /
COPY config-external.sh ensure_latest_config.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/heat/heat-api-cfn/Dockerfile.j2 b/docker_templates/heat/heat-api-cfn/Dockerfile.j2
index ecff87b00..f199c16cf 100644
--- a/docker_templates/heat/heat-api-cfn/Dockerfile.j2
+++ b/docker_templates/heat/heat-api-cfn/Dockerfile.j2
@@ -21,3 +21,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/heat/heat-api/Dockerfile.j2 b/docker_templates/heat/heat-api/Dockerfile.j2
index 2688a3270..8a782d8d3 100644
--- a/docker_templates/heat/heat-api/Dockerfile.j2
+++ b/docker_templates/heat/heat-api/Dockerfile.j2
@@ -21,3 +21,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/heat/heat-engine/Dockerfile.j2 b/docker_templates/heat/heat-engine/Dockerfile.j2
index d080fec6a..5002d519d 100644
--- a/docker_templates/heat/heat-engine/Dockerfile.j2
+++ b/docker_templates/heat/heat-engine/Dockerfile.j2
@@ -24,3 +24,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/horizon/Dockerfile.j2 b/docker_templates/horizon/Dockerfile.j2
index d05b21c15..2fe69b3d2 100644
--- a/docker_templates/horizon/Dockerfile.j2
+++ b/docker_templates/horizon/Dockerfile.j2
@@ -54,3 +54,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/ironic/ironic-api/Dockerfile.j2 b/docker_templates/ironic/ironic-api/Dockerfile.j2
index 3aa2322ef..5bce3bdda 100644
--- a/docker_templates/ironic/ironic-api/Dockerfile.j2
+++ b/docker_templates/ironic/ironic-api/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/ironic/ironic-conductor/Dockerfile.j2 b/docker_templates/ironic/ironic-conductor/Dockerfile.j2
index 65c816d62..d38033230 100644
--- a/docker_templates/ironic/ironic-conductor/Dockerfile.j2
+++ b/docker_templates/ironic/ironic-conductor/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/ironic/ironic-discoverd/Dockerfile.j2 b/docker_templates/ironic/ironic-discoverd/Dockerfile.j2
index 6de58d861..cb4e8b80f 100644
--- a/docker_templates/ironic/ironic-discoverd/Dockerfile.j2
+++ b/docker_templates/ironic/ironic-discoverd/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/keepalived/Dockerfile.j2 b/docker_templates/keepalived/Dockerfile.j2
index 3ad2a667c..325e4c2c5 100644
--- a/docker_templates/keepalived/Dockerfile.j2
+++ b/docker_templates/keepalived/Dockerfile.j2
@@ -22,3 +22,5 @@ COPY start.sh check_alive.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/keystone/Dockerfile.j2 b/docker_templates/keystone/Dockerfile.j2
index ec8144b91..a3b686165 100644
--- a/docker_templates/keystone/Dockerfile.j2
+++ b/docker_templates/keystone/Dockerfile.j2
@@ -67,3 +67,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/kolla-ansible/Dockerfile.j2 b/docker_templates/kolla-ansible/Dockerfile.j2
index e95a90aa7..9975f5873 100644
--- a/docker_templates/kolla-ansible/Dockerfile.j2
+++ b/docker_templates/kolla-ansible/Dockerfile.j2
@@ -34,3 +34,5 @@ RUN mkdir -p /etc/ansible /usr/share/ansible \
&& echo 'localhost ansible_connection=local' > /etc/ansible/hosts
COPY kolla_keystone_service.py kolla_keystone_user.py /usr/share/ansible/
+
+{{ include_footer }}
diff --git a/docker_templates/magnum/magnum-api/Dockerfile.j2 b/docker_templates/magnum/magnum-api/Dockerfile.j2
index 4da0f3a65..e208a115e 100644
--- a/docker_templates/magnum/magnum-api/Dockerfile.j2
+++ b/docker_templates/magnum/magnum-api/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/magnum/magnum-conductor/Dockerfile.j2 b/docker_templates/magnum/magnum-conductor/Dockerfile.j2
index 2f1660359..c14370085 100644
--- a/docker_templates/magnum/magnum-conductor/Dockerfile.j2
+++ b/docker_templates/magnum/magnum-conductor/Dockerfile.j2
@@ -19,3 +19,5 @@ COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/memcached/Dockerfile.j2 b/docker_templates/memcached/Dockerfile.j2
index dcf4bd042..0c0111f7e 100644
--- a/docker_templates/memcached/Dockerfile.j2
+++ b/docker_templates/memcached/Dockerfile.j2
@@ -17,3 +17,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/mongodb/Dockerfile.j2 b/docker_templates/mongodb/Dockerfile.j2
index 16f8cd2fc..ee82f0b7a 100644
--- a/docker_templates/mongodb/Dockerfile.j2
+++ b/docker_templates/mongodb/Dockerfile.j2
@@ -21,3 +21,5 @@ VOLUME /data/db
VOLUME /var/log/mongodb
ENTRYPOINT exec /bin/mongod --dbpath /data/db --logpath /var/log/mongodb/mongo.log --noprealloc --smallfiles
+
+{{ include_footer }}
diff --git a/docker_templates/murano/murano-api/Dockerfile.j2 b/docker_templates/murano/murano-api/Dockerfile.j2
index 3136c77ad..f1d7e1f42 100644
--- a/docker_templates/murano/murano-api/Dockerfile.j2
+++ b/docker_templates/murano/murano-api/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY config-external.sh /opt/kolla/
COPY start.sh /
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/murano/murano-engine/Dockerfile.j2 b/docker_templates/murano/murano-engine/Dockerfile.j2
index 3136c77ad..f1d7e1f42 100644
--- a/docker_templates/murano/murano-engine/Dockerfile.j2
+++ b/docker_templates/murano/murano-engine/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY config-external.sh /opt/kolla/
COPY start.sh /
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/neutron/neutron-agents/Dockerfile.j2 b/docker_templates/neutron/neutron-agents/Dockerfile.j2
index cb4cec403..590443e00 100644
--- a/docker_templates/neutron/neutron-agents/Dockerfile.j2
+++ b/docker_templates/neutron/neutron-agents/Dockerfile.j2
@@ -31,3 +31,5 @@ COPY neutron-l3-agent/ /opt/kolla/neutron-l3-agent
COPY neutron-metadata-agent/ /opt/kolla/neutron-metadata-agent
CMD ["/usr/bin/supervisord"]
+
+{{ include_footer }}
diff --git a/docker_templates/neutron/neutron-linuxbridge-agent/Dockerfile.j2 b/docker_templates/neutron/neutron-linuxbridge-agent/Dockerfile.j2
index cdac55369..58d5ae6c3 100644
--- a/docker_templates/neutron/neutron-linuxbridge-agent/Dockerfile.j2
+++ b/docker_templates/neutron/neutron-linuxbridge-agent/Dockerfile.j2
@@ -24,3 +24,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/neutron/neutron-openvswitch-agent/Dockerfile.j2 b/docker_templates/neutron/neutron-openvswitch-agent/Dockerfile.j2
index 977f53d23..ad12e5511 100644
--- a/docker_templates/neutron/neutron-openvswitch-agent/Dockerfile.j2
+++ b/docker_templates/neutron/neutron-openvswitch-agent/Dockerfile.j2
@@ -28,3 +28,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/neutron/neutron-server/Dockerfile.j2 b/docker_templates/neutron/neutron-server/Dockerfile.j2
index 0c4a2cfa1..9cfe634c4 100644
--- a/docker_templates/neutron/neutron-server/Dockerfile.j2
+++ b/docker_templates/neutron/neutron-server/Dockerfile.j2
@@ -27,3 +27,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/nova/nova-api/Dockerfile.j2 b/docker_templates/nova/nova-api/Dockerfile.j2
index 1b1e11927..b906d1937 100644
--- a/docker_templates/nova/nova-api/Dockerfile.j2
+++ b/docker_templates/nova/nova-api/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/nova/nova-compute/Dockerfile.j2 b/docker_templates/nova/nova-compute/Dockerfile.j2
index 214cde4fe..a8a719023 100644
--- a/docker_templates/nova/nova-compute/Dockerfile.j2
+++ b/docker_templates/nova/nova-compute/Dockerfile.j2
@@ -30,3 +30,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/nova/nova-conductor/Dockerfile.j2 b/docker_templates/nova/nova-conductor/Dockerfile.j2
index 572d2b46a..0f42df5c9 100644
--- a/docker_templates/nova/nova-conductor/Dockerfile.j2
+++ b/docker_templates/nova/nova-conductor/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/nova/nova-consoleauth/Dockerfile.j2 b/docker_templates/nova/nova-consoleauth/Dockerfile.j2
index c1e8cbffb..1c8d9ea12 100644
--- a/docker_templates/nova/nova-consoleauth/Dockerfile.j2
+++ b/docker_templates/nova/nova-consoleauth/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/nova/nova-libvirt/Dockerfile.j2 b/docker_templates/nova/nova-libvirt/Dockerfile.j2
index 29e0843c3..5ff525426 100644
--- a/docker_templates/nova/nova-libvirt/Dockerfile.j2
+++ b/docker_templates/nova/nova-libvirt/Dockerfile.j2
@@ -28,3 +28,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/nova/nova-network/Dockerfile.j2 b/docker_templates/nova/nova-network/Dockerfile.j2
index 2f6adf18e..60ea394aa 100644
--- a/docker_templates/nova/nova-network/Dockerfile.j2
+++ b/docker_templates/nova/nova-network/Dockerfile.j2
@@ -24,3 +24,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/nova/nova-novncproxy/Dockerfile.j2 b/docker_templates/nova/nova-novncproxy/Dockerfile.j2
index 4ddc7e6c3..b798e00a6 100644
--- a/docker_templates/nova/nova-novncproxy/Dockerfile.j2
+++ b/docker_templates/nova/nova-novncproxy/Dockerfile.j2
@@ -30,3 +30,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/nova/nova-scheduler/Dockerfile.j2 b/docker_templates/nova/nova-scheduler/Dockerfile.j2
index 66b4910bc..5dd0fd507 100644
--- a/docker_templates/nova/nova-scheduler/Dockerfile.j2
+++ b/docker_templates/nova/nova-scheduler/Dockerfile.j2
@@ -14,3 +14,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/openvswitch/ovs-db-server/Dockerfile.j2 b/docker_templates/openvswitch/ovs-db-server/Dockerfile.j2
index 3d80329c3..05c6a928b 100644
--- a/docker_templates/openvswitch/ovs-db-server/Dockerfile.j2
+++ b/docker_templates/openvswitch/ovs-db-server/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/openvswitch/ovs-vswitchd/Dockerfile.j2 b/docker_templates/openvswitch/ovs-vswitchd/Dockerfile.j2
index 727104405..59079d335 100644
--- a/docker_templates/openvswitch/ovs-vswitchd/Dockerfile.j2
+++ b/docker_templates/openvswitch/ovs-vswitchd/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY start.sh /
COPY ovs_ensure_configured.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/rabbitmq/Dockerfile.j2 b/docker_templates/rabbitmq/Dockerfile.j2
index 1c748eee0..1baf2ce80 100644
--- a/docker_templates/rabbitmq/Dockerfile.j2
+++ b/docker_templates/rabbitmq/Dockerfile.j2
@@ -23,3 +23,5 @@ COPY start.sh /
COPY config-rabbit.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/swift/swift-account-server/Dockerfile.j2 b/docker_templates/swift/swift-account-server/Dockerfile.j2
index 809091d4d..7320de9f4 100644
--- a/docker_templates/swift/swift-account-server/Dockerfile.j2
+++ b/docker_templates/swift/swift-account-server/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/swift/swift-container-server/Dockerfile.j2 b/docker_templates/swift/swift-container-server/Dockerfile.j2
index b4b43d8dc..1a08c0f5d 100644
--- a/docker_templates/swift/swift-container-server/Dockerfile.j2
+++ b/docker_templates/swift/swift-container-server/Dockerfile.j2
@@ -15,3 +15,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/swift/swift-object-auditor/Dockerfile.j2 b/docker_templates/swift/swift-object-auditor/Dockerfile.j2
index 637501586..ab8a7adee 100644
--- a/docker_templates/swift/swift-object-auditor/Dockerfile.j2
+++ b/docker_templates/swift/swift-object-auditor/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/swift/swift-object-expirer/Dockerfile.j2 b/docker_templates/swift/swift-object-expirer/Dockerfile.j2
index 8b211f2e4..af9f3eb58 100644
--- a/docker_templates/swift/swift-object-expirer/Dockerfile.j2
+++ b/docker_templates/swift/swift-object-expirer/Dockerfile.j2
@@ -16,3 +16,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/swift/swift-object-replicator/Dockerfile.j2 b/docker_templates/swift/swift-object-replicator/Dockerfile.j2
index 637501586..ab8a7adee 100644
--- a/docker_templates/swift/swift-object-replicator/Dockerfile.j2
+++ b/docker_templates/swift/swift-object-replicator/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/swift/swift-object-server/Dockerfile.j2 b/docker_templates/swift/swift-object-server/Dockerfile.j2
index 637501586..ab8a7adee 100644
--- a/docker_templates/swift/swift-object-server/Dockerfile.j2
+++ b/docker_templates/swift/swift-object-server/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/swift/swift-object-updater/Dockerfile.j2 b/docker_templates/swift/swift-object-updater/Dockerfile.j2
index 637501586..ab8a7adee 100644
--- a/docker_templates/swift/swift-object-updater/Dockerfile.j2
+++ b/docker_templates/swift/swift-object-updater/Dockerfile.j2
@@ -5,3 +5,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/swift/swift-proxy-server/Dockerfile.j2 b/docker_templates/swift/swift-proxy-server/Dockerfile.j2
index b668f33e2..54d024f8b 100644
--- a/docker_templates/swift/swift-proxy-server/Dockerfile.j2
+++ b/docker_templates/swift/swift-proxy-server/Dockerfile.j2
@@ -12,3 +12,5 @@ RUN yum -y install openstack-swift-proxy && yum clean all
COPY ./start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/docker_templates/zaqar/Dockerfile.j2 b/docker_templates/zaqar/Dockerfile.j2
index fd4752f78..4e3a0bc52 100644
--- a/docker_templates/zaqar/Dockerfile.j2
+++ b/docker_templates/zaqar/Dockerfile.j2
@@ -28,3 +28,5 @@ COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
+
+{{ include_footer }}
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index d94d8b29b..d3842d581 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -249,6 +249,10 @@ def arg_parser():
help=('Path to custom file to be added at '
'beginning of base Dockerfile'),
type=str)
+ parser.add_argument('-I', '--include-footer',
+ help=('Path to custom file to be added at '
+ 'end of Dockerfiles for final images'),
+ type=str)
return vars(parser.parse_args())
@@ -281,6 +285,7 @@ class KollaWorker(object):
self.config = ConfigParser.SafeConfigParser()
self.config.read(os.path.join(self.base_dir, 'build.ini'))
self.include_header = args['include_header']
+ self.include_footer = args['include_footer']
self.regex = args['regex']
self.image_statuses_bad = dict()
@@ -320,6 +325,9 @@ class KollaWorker(object):
if self.include_header:
with open(self.include_header, 'r') as f:
values['include_header'] = f.read()
+ if self.include_footer:
+ with open(self.include_footer, 'r') as f:
+ values['include_footer'] = f.read()
content = template.render(values)
with open(os.path.join(path, 'Dockerfile'), 'w') as f:
f.write(content)