Add build from source for gnocchi

Change-Id: Ifd012b8cb7dd643da74364ecaa5133608fe9fe38
Partially-implements: blueprint install-from-source
This commit is contained in:
Swapnil Kulkarni 2015-07-27 09:01:57 +00:00
parent 3b394581ab
commit ef07cfc222
14 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,8 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%gnocchi-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/gnocchi/gnocchi-api/config-external.sh

View File

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

View File

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

View File

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

View File

@ -0,0 +1,17 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
ADD ./gnocchi.tar /
RUN ln -s /gnocchi-* /gnocchi
RUN cd /gnocchi \
&& useradd --user-group gnocchi \
&& pip install -r requirements.txt \
&& pip install /gnocchi \
&& mkdir /etc/gnocchi /var/log/gnocchi \
&& cp -r /gnocchi/etc/* /etc/gnocchi/ \
&& rm -rf /root/.cache
COPY config-gnocchi.sh /opt/kolla/config-gnocchi.sh
CMD ["/start.sh"]

View File

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

View File

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

View File

@ -0,0 +1,8 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%gnocchi-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/gnocchi/gnocchi-statsd/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/gnocchi/gnocchi-statsd/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/gnocchi/gnocchi-statsd/start.sh