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
This commit is contained in:
parent
f5b053a6b2
commit
726a80cd1d
@ -10,7 +10,7 @@ RUN cd /barbican \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /barbican \
|
||||
&& mkdir /etc/barbican /var/log/barbican \
|
||||
&& cp -r /barbican/etc/* /etc/ \
|
||||
&& cp -r /barbican/etc/* /etc/barbican/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
COPY ./start.sh /start.sh
|
||||
|
@ -9,7 +9,7 @@ RUN cd /ceilometer \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /ceilometer \
|
||||
&& mkdir /etc/ceilometer /var/log/ceilometer \
|
||||
&& cp -r /ceilometer/etc/* /etc/ \
|
||||
&& cp -r /ceilometer/etc/* /etc/ceilometer/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
@ -9,6 +9,6 @@ RUN cd /cinder \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /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 \
|
||||
&& rm -rf /root/.cache
|
||||
|
@ -9,7 +9,7 @@ RUN cd /designate \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /designate \
|
||||
&& mkdir /etc/designate /var/log/designate \
|
||||
&& cp -r /designate/etc/* /etc/ \
|
||||
&& cp -r /designate/etc/designate/* /etc/designate/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
@ -9,5 +9,5 @@ RUN cd /gnocchi \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /gnocchi \
|
||||
&& mkdir /etc/gnocchi /var/log/gnocchi \
|
||||
&& cp -r /gnocchi/etc/* /etc/ \
|
||||
&& cp -r /gnocchi/etc/gnocchi/* /etc/gnocchi/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
@ -9,5 +9,5 @@ RUN cd /heat \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /heat \
|
||||
&& mkdir /etc/heat /var/log/heat \
|
||||
&& cp -r /heat/etc/* /etc/ \
|
||||
&& cp -r /heat/etc/heat/* /etc/heat/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
@ -9,5 +9,5 @@ RUN cd /magnum \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /magnum \
|
||||
&& mkdir /etc/magnum /var/log/magnum \
|
||||
&& cp -r /magnum/etc/* /etc/ \
|
||||
&& cp -r /magnum/etc/magnum/* /etc/magnum/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
@ -10,6 +10,6 @@ RUN cd /murano \
|
||||
&& mkdir /etc/murano \
|
||||
&& cd /murano \
|
||||
&& tox -e genconfig \
|
||||
&& cp -r etc/murano/* /etc/ \
|
||||
&& cp -r etc/murano/* /etc/murano/ \
|
||||
&& cp etc/murano/murano.conf.sample /etc/murano/murano.conf \
|
||||
&& rm -rf /root/.cache
|
||||
|
Loading…
Reference in New Issue
Block a user