summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgugug <gu.jin@99cloud.net>2020-05-17 22:19:02 +0800
committergugug <gu.jin@99cloud.net>2020-05-19 23:49:01 +0800
commit2e6d2f144cd2de18193d9d87d36c95dfb75fb1b7 (patch)
treee510ef45f2fcd8dd2bae98de3893805fb2b38695
parentaabd532da9fe3cac64626d481c4b3113b5925e69 (diff)
downloadkolla-2e6d2f144cd2de18193d9d87d36c95dfb75fb1b7.tar.gz
kolla-2e6d2f144cd2de18193d9d87d36c95dfb75fb1b7.zip
Ensure the confs exists for cyborg and masakari
1. When cyborg images build completed, the /etc/cyborg folder is not exits, and there is not confs, especially the api-paste.ini 2. When masakari images build completed, it's configs is missing, this ps add them together cyborg should keep consistence with the other images[1], this PS to add it. [1]: https://github.com/openstack/kolla/blob/master/docker/nova/nova-base/Dockerfile.j2#L137 Change-Id: I8a802617952f80cfb9f906398054ef6d17559589
-rw-r--r--docker/cyborg/cyborg-base/Dockerfile.j24
-rw-r--r--docker/masakari/masakari-base/Dockerfile.j21
2 files changed, 4 insertions, 1 deletions
diff --git a/docker/cyborg/cyborg-base/Dockerfile.j2 b/docker/cyborg/cyborg-base/Dockerfile.j2
index 36b0aa007..51d39fd0f 100644
--- a/docker/cyborg/cyborg-base/Dockerfile.j2
+++ b/docker/cyborg/cyborg-base/Dockerfile.j2
@@ -23,7 +23,9 @@ ADD cyborg-base-archive /cyborg-base-source
] %}
RUN ln -s cyborg-base-source/* cyborg \
- && {{ macros.install_pip(cyborg_base_pip_packages | customizable("pip_packages")) }}
+ && {{ macros.install_pip(cyborg_base_pip_packages | customizable("pip_packages")) }} \
+ && mkdir -p /etc/cyborg/ \
+ && cp -r /cyborg/etc/cyborg/* /etc/cyborg/
{% endif %}
diff --git a/docker/masakari/masakari-base/Dockerfile.j2 b/docker/masakari/masakari-base/Dockerfile.j2
index 3bd6a988c..841d46dc2 100644
--- a/docker/masakari/masakari-base/Dockerfile.j2
+++ b/docker/masakari/masakari-base/Dockerfile.j2
@@ -52,6 +52,7 @@ ADD masakari-base-archive /masakari-base-source
RUN ln -s masakari-base-source/* masakari \
&& {{ macros.install_pip(masakari_base_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/masakari /var/www/cgi-bin/masakari \
+ && cp -r /masakari/etc/masakari/* /etc/masakari/ \
&& chown -R masakari: /etc/masakari /var/www/cgi-bin/masakari
{% endif %}