Adding cinder source image

Change-Id: I2ec195bc1ed0504244df00de6d7273ac702222c5
Co-authored by: Paul Bourke <paul.bourke@oracle.com>
Partially-Implements: blueprint install-from-source
This commit is contained in:
Mark Duggan 2015-07-23 14:21:14 +00:00 committed by Paul Bourke
parent 63035f7ce4
commit ed62fdf8c9
30 changed files with 106 additions and 3 deletions

View File

@ -3,17 +3,21 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla)
# Dependencies required for building/installing source components
RUN yum install -y \
epel-release \
gcc \
git \
libffi-devel \
libxml2-devel \
libxslt-devel \
mariadb \
mysql-devel \
MySQL-python \
openssl \
openssl-devel \
postgresql-devel \
python-devel \
python-oslo-policy \
tar \
libxml2-devel \
libxslt-devel \
&& yum clean all
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
@ -24,7 +28,8 @@ RUN pip install --upgrade \
cachetools \
crudini \
crux \
pip
pip \
tox
RUN mkdir -p /opt/kolla
COPY service_hosts.sh kolla-common.sh /opt/kolla/

View File

@ -0,0 +1,9 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%cinder-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN pip install python-keystoneclient
COPY config-internal.sh config-external.sh /opt/kolla/
COPY ./start.sh ./check.sh /
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-api/check.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-api/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-api/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-api/start.sh

View File

@ -0,0 +1,7 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%cinder-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY ./start.sh /start.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-backup/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-backup/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-backup/start.sh

View File

@ -0,0 +1,11 @@
# Build info specific to this image. All values can be overridden in .buildconf
COMPONENT=cinder
SOURCE_INSTALL_AVAILABLE=1
SOURCE_INSTALL_METHOD=curl
# Used for git install method
: ${CLONE_FROM:=https://github.com/openstack/cinder}
# Used for curl install method
: ${TARBALL_URI:=http://tarballs.openstack.org/cinder/cinder-master.tar.gz}

View File

@ -0,0 +1,19 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
ADD ./cinder.tar /
RUN ln -s /cinder-* /cinder
RUN cd /cinder \
&& useradd --user-group cinder \
&& pip install -r requirements.txt \
&& pip install /cinder \
&& tox -egenconfig \
&& 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
COPY config-cinder.sh /opt/kolla/config-cinder.sh

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-base/config-cinder.sh

View File

@ -0,0 +1,9 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_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"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1,7 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%cinder-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY ./start.sh /start.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-scheduler/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-scheduler/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-scheduler/start.sh

View File

@ -0,0 +1,14 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%cinder-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
# Install required packages
RUN yum install -y \
lvm2 \
scsi-target-utils \
&& yum clean all
# Add start scripts
COPY tgtd.sh volume-group-create.sh config-internal.sh config-external.sh /opt/kolla/
COPY start.sh /start.sh
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-volume/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-volume/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-volume/start.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-volume/tgtd.sh

View File

@ -0,0 +1 @@
../../../../common/cinder-app/cinder-volume/volume-group-create.sh