Skip to content
Snippets Groups Projects
Commit 726a80cd authored by Ryan Hallisey's avatar Ryan Hallisey
Browse files

Refactor where source builds place config files

Many of the services have a nested directory that will
be copied into /etc, which will place the config files one
layer too deep. For example: heat has 'heat/etc/heat/heat.conf'.
Copying 'heat/etc*' to '/etc/heat' will create this extra layer.

Change-Id: Iad4661f0316523c5fe8d029d24a8e4fc68da6e15
Closes-Bug: #1484974
parent f5b053a6
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ RUN cd /barbican \ ...@@ -10,7 +10,7 @@ RUN cd /barbican \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pip install /barbican \ && pip install /barbican \
&& mkdir /etc/barbican /var/log/barbican \ && mkdir /etc/barbican /var/log/barbican \
&& cp -r /barbican/etc/* /etc/ \ && cp -r /barbican/etc/* /etc/barbican/ \
&& rm -rf /root/.cache && rm -rf /root/.cache
COPY ./start.sh /start.sh COPY ./start.sh /start.sh
......
...@@ -9,7 +9,7 @@ RUN cd /ceilometer \ ...@@ -9,7 +9,7 @@ RUN cd /ceilometer \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pip install /ceilometer \ && pip install /ceilometer \
&& mkdir /etc/ceilometer /var/log/ceilometer \ && mkdir /etc/ceilometer /var/log/ceilometer \
&& cp -r /ceilometer/etc/* /etc/ \ && cp -r /ceilometer/etc/* /etc/ceilometer/ \
&& rm -rf /root/.cache && rm -rf /root/.cache
CMD ["/start.sh"] CMD ["/start.sh"]
...@@ -9,6 +9,6 @@ RUN cd /cinder \ ...@@ -9,6 +9,6 @@ RUN cd /cinder \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pip install /cinder \ && pip install /cinder \
&& mkdir /etc/cinder /var/log/cinder \ && mkdir /etc/cinder /var/log/cinder \
&& cp -r /cinder/etc/cinder/* /etc/ \ && cp -r /cinder/etc/cinder/* /etc/cinder/ \
&& chown -R cinder: /etc/cinder /var/log/cinder \ && chown -R cinder: /etc/cinder /var/log/cinder \
&& rm -rf /root/.cache && rm -rf /root/.cache
...@@ -9,7 +9,7 @@ RUN cd /designate \ ...@@ -9,7 +9,7 @@ RUN cd /designate \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pip install /designate \ && pip install /designate \
&& mkdir /etc/designate /var/log/designate \ && mkdir /etc/designate /var/log/designate \
&& cp -r /designate/etc/* /etc/ \ && cp -r /designate/etc/designate/* /etc/designate/ \
&& rm -rf /root/.cache && rm -rf /root/.cache
CMD ["/start.sh"] CMD ["/start.sh"]
...@@ -9,5 +9,5 @@ RUN cd /gnocchi \ ...@@ -9,5 +9,5 @@ RUN cd /gnocchi \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pip install /gnocchi \ && pip install /gnocchi \
&& mkdir /etc/gnocchi /var/log/gnocchi \ && mkdir /etc/gnocchi /var/log/gnocchi \
&& cp -r /gnocchi/etc/* /etc/ \ && cp -r /gnocchi/etc/gnocchi/* /etc/gnocchi/ \
&& rm -rf /root/.cache && rm -rf /root/.cache
...@@ -9,5 +9,5 @@ RUN cd /heat \ ...@@ -9,5 +9,5 @@ RUN cd /heat \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pip install /heat \ && pip install /heat \
&& mkdir /etc/heat /var/log/heat \ && mkdir /etc/heat /var/log/heat \
&& cp -r /heat/etc/* /etc/ \ && cp -r /heat/etc/heat/* /etc/heat/ \
&& rm -rf /root/.cache && rm -rf /root/.cache
...@@ -9,5 +9,5 @@ RUN cd /magnum \ ...@@ -9,5 +9,5 @@ RUN cd /magnum \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pip install /magnum \ && pip install /magnum \
&& mkdir /etc/magnum /var/log/magnum \ && mkdir /etc/magnum /var/log/magnum \
&& cp -r /magnum/etc/* /etc/ \ && cp -r /magnum/etc/magnum/* /etc/magnum/ \
&& rm -rf /root/.cache && rm -rf /root/.cache
...@@ -10,6 +10,6 @@ RUN cd /murano \ ...@@ -10,6 +10,6 @@ RUN cd /murano \
&& mkdir /etc/murano \ && mkdir /etc/murano \
&& cd /murano \ && cd /murano \
&& tox -e genconfig \ && tox -e genconfig \
&& cp -r etc/murano/* /etc/ \ && cp -r etc/murano/* /etc/murano/ \
&& cp etc/murano/murano.conf.sample /etc/murano/murano.conf \ && cp etc/murano/murano.conf.sample /etc/murano/murano.conf \
&& rm -rf /root/.cache && rm -rf /root/.cache
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment