The cinder image build started cinder during building

The cinder image build started cinder during building.  Instead it should
only be started during runtime.  Further it installed a bunch of infrastructure
dependencies (mysql, rabbitmq) that are likely not needed in the cinder image.
This commit is contained in:
Steven Dake 2014-09-20 11:31:39 -07:00 committed by Lars Kellogg-Stedman
parent ce94f823d4
commit 87276efbbd
1 changed files with 3 additions and 13 deletions

View File

@ -1,18 +1,8 @@
FROM fedora-rdo-base
MAINTAINER rhallise@redhat.com
# Install required packages
RUN yum install -y wget procps-ng net-tools && yum clean all
RUN yum install -y openstack-cinder rabbitmq-server openstack-utils openstack-selinux mariadb-galera-server socat && yum clean all
RUN yum -y install openstack-cinder && yum clean all
ADD ./start.sh /start.sh
CMD ["/start.sh"]
# Start Cinder
RUN /usr/bin/cinder-api --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/api.log
RUN /usr/bin/cinder-scheduler --config-file /usr/share/cinder/cinder-dist.conf --config-file/etc/cinder/cinder.conf --logfile /var/log/cinder/scheduler.log
RUN /usr/bin/cinder-volume --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/volume.log
ADD ./start /usr/bin/run
CMD ["/usr/bin/run"]