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:
parent
63035f7ce4
commit
ed62fdf8c9
@ -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/
|
||||
|
9
docker/centos/source/cinder-app/cinder-api/Dockerfile
Normal file
9
docker/centos/source/cinder-app/cinder-api/Dockerfile
Normal 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"]
|
1
docker/centos/source/cinder-app/cinder-api/build
Symbolic link
1
docker/centos/source/cinder-app/cinder-api/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/cinder-app/cinder-api/check.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-api/check.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-api/check.sh
|
1
docker/centos/source/cinder-app/cinder-api/config-external.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-api/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-api/config-external.sh
|
1
docker/centos/source/cinder-app/cinder-api/config-internal.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-api/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-api/config-internal.sh
|
1
docker/centos/source/cinder-app/cinder-api/start.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-api/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-api/start.sh
|
7
docker/centos/source/cinder-app/cinder-backup/Dockerfile
Normal file
7
docker/centos/source/cinder-app/cinder-backup/Dockerfile
Normal 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"]
|
1
docker/centos/source/cinder-app/cinder-backup/build
Symbolic link
1
docker/centos/source/cinder-app/cinder-backup/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/cinder-app/cinder-backup/config-external.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-backup/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-backup/config-external.sh
|
1
docker/centos/source/cinder-app/cinder-backup/config-internal.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-backup/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-backup/config-internal.sh
|
1
docker/centos/source/cinder-app/cinder-backup/start.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-backup/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-backup/start.sh
|
11
docker/centos/source/cinder-app/cinder-base/.buildinfo
Normal file
11
docker/centos/source/cinder-app/cinder-base/.buildinfo
Normal 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}
|
19
docker/centos/source/cinder-app/cinder-base/Dockerfile
Normal file
19
docker/centos/source/cinder-app/cinder-base/Dockerfile
Normal 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
|
||||
|
1
docker/centos/source/cinder-app/cinder-base/build
Symbolic link
1
docker/centos/source/cinder-app/cinder-base/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/cinder-app/cinder-base/config-cinder.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-base/config-cinder.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-base/config-cinder.sh
|
9
docker/centos/source/cinder-app/cinder-data/Dockerfile
Normal file
9
docker/centos/source/cinder-app/cinder-data/Dockerfile
Normal 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"]
|
1
docker/centos/source/cinder-app/cinder-data/build
Symbolic link
1
docker/centos/source/cinder-app/cinder-data/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
@ -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"]
|
1
docker/centos/source/cinder-app/cinder-scheduler/build
Symbolic link
1
docker/centos/source/cinder-app/cinder-scheduler/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-scheduler/config-external.sh
|
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-scheduler/config-internal.sh
|
1
docker/centos/source/cinder-app/cinder-scheduler/start.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-scheduler/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-scheduler/start.sh
|
14
docker/centos/source/cinder-app/cinder-volume/Dockerfile
Normal file
14
docker/centos/source/cinder-app/cinder-volume/Dockerfile
Normal 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"]
|
1
docker/centos/source/cinder-app/cinder-volume/build
Symbolic link
1
docker/centos/source/cinder-app/cinder-volume/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/cinder-app/cinder-volume/config-external.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-volume/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-volume/config-external.sh
|
1
docker/centos/source/cinder-app/cinder-volume/config-internal.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-volume/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-volume/config-internal.sh
|
1
docker/centos/source/cinder-app/cinder-volume/start.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-volume/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-volume/start.sh
|
1
docker/centos/source/cinder-app/cinder-volume/tgtd.sh
Symbolic link
1
docker/centos/source/cinder-app/cinder-volume/tgtd.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-volume/tgtd.sh
|
@ -0,0 +1 @@
|
||||
../../../../common/cinder-app/cinder-volume/volume-group-create.sh
|
Loading…
Reference in New Issue
Block a user