Skip to content
Snippets Groups Projects
Commit 87b8d2c1 authored by Swapnil Kulkarni's avatar Swapnil Kulkarni
Browse files

Add Dockerfile template for Cinder

Change-Id: I3791b58f15802f9ddbedb48d1a846813b05e0209
Partially-Implements: blueprint dockerfile-template
parent a0a859ac
No related branches found
No related tags found
No related merge requests found
Showing
with 102 additions and 0 deletions
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-cinder-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum install -y python-keystone \
&& yum clean all
{% endif %}
{% endif %}
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
../../../tools/build-docker-image
\ No newline at end of file
../../../docker/common/cinder/cinder-api/config-external.sh
\ No newline at end of file
../../../docker/common/cinder/cinder-api/start.sh
\ No newline at end of file
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-cinder-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
../../../tools/build-docker-image
\ No newline at end of file
../../../docker/common/cinder/cinder-backup/config-external.sh
\ No newline at end of file
../../../docker/common/cinder/cinder-backup/start.sh
\ No newline at end of file
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install openstack-cinder \
automaton \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{% elif install_type == 'source' %}
ADD ./cinder.tar /
RUN ln -s /cinder-* /cinder
RUN cd /cinder \
&& useradd --user-group cinder \
&& pip install -r requirements.txt \
&& pip install /cinder \
&& mkdir /etc/cinder /var/log/cinder \
&& cp -r /cinder/etc/cinder/* /etc/cinder/ \
&& cp /etc/cinder/cinder.conf.sample /etc/cinder/cinder.conf \
&& chown -R cinder: /etc/cinder /var/log/cinder \
&& rm -rf /root/.cache
{% endif %}
../../../tools/build-docker-image
\ No newline at end of file
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-cinder-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN mkdir -p /opt/data
VOLUME [ "/opt/data" ]
# Command needed to start the data container.
# Note: data containers do not need to be persistent.
CMD ["/bin/true"]
../../../tools/build-docker-image
\ No newline at end of file
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-cinder-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
../../../tools/build-docker-image
\ No newline at end of file
../../../docker/common/cinder/cinder-scheduler/config-external.sh
\ No newline at end of file
../../../docker/common/cinder/cinder-scheduler/start.sh
\ No newline at end of file
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-cinder-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum install -y lvm2 \
scsi-target-utils \
&& yum clean all
{% endif %}
{% endif %}
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
../../../tools/build-docker-image
\ No newline at end of file
../../../docker/common/cinder/cinder-volume/config-external.sh
\ No newline at end of file
../../../docker/common/cinder/cinder-volume/start.sh
\ No newline at end of file
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