diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-08-24 14:47:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-08-24 14:47:19 +0000 |
| commit | 85409731f64598c953a7dcff2f79041aec9c140e (patch) | |
| tree | 53016ccbd846ff74fe004cf78d259a83d98b103f | |
| parent | 009da0f7e111670375f0d107515d3c2e8286c7f3 (diff) | |
| parent | 73a356e951865d508e4d527ff4a054e8602143b9 (diff) | |
| download | kolla-85409731f64598c953a7dcff2f79041aec9c140e.tar.gz kolla-85409731f64598c953a7dcff2f79041aec9c140e.zip | |
Merge "Ubuntu - Gnocchi"
| -rw-r--r-- | docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 | 7 | ||||
| -rw-r--r-- | docker_templates/gnocchi/gnocchi-base/Dockerfile.j2 | 13 |
2 files changed, 13 insertions, 7 deletions
diff --git a/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 b/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 index 93d821476..9bb144ed7 100644 --- a/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 +++ b/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 @@ -4,9 +4,10 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla) {% if install_type == 'binary' %} {% if base_distro in ['fedora', 'centos', 'oraclelinux'] %} -RUN yum install -y openstack-gnocchi-api \ - openstack-gnocchi-carbonara \ - openstack-gnocchi-indexer-sqlalchemy \ +RUN yum install -y \ + openstack-gnocchi-api \ + openstack-gnocchi-carbonara \ + openstack-gnocchi-indexer-sqlalchemy \ && yum clean all {% endif %} diff --git a/docker_templates/gnocchi/gnocchi-base/Dockerfile.j2 b/docker_templates/gnocchi/gnocchi-base/Dockerfile.j2 index db8220524..49cf68efb 100644 --- a/docker_templates/gnocchi/gnocchi-base/Dockerfile.j2 +++ b/docker_templates/gnocchi/gnocchi-base/Dockerfile.j2 @@ -2,13 +2,17 @@ FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }} MAINTAINER Kolla Project (https://launchpad.net/kolla) {% if install_type == 'binary' %} - {% if base_distro in ['ubuntu', 'debian'] %} RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ && /bin/false - {% endif %} {% elif install_type == 'source' %} + {% if base_distro in ['ubuntu', 'debian'] %} + +RUN apt-get install -y --no-install-recommends libpq-dev \ + && apt-get clean + + {% endif %} ADD ./gnocchi.tar / RUN ln -s /gnocchi-* /gnocchi @@ -16,9 +20,10 @@ 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 \ + && pip install --install-option="--install-scripts=/usr/bin" /gnocchi \ + && mkdir -p /etc/gnocchi /var/log/gnocchi /home/gnocchi \ && cp -r /gnocchi/etc/* /etc/gnocchi/ \ + && chown -R gnocchi: /etc/gnocchi /var/log/gnocchi /home/gnocchi \ && rm -rf /root/.cache {% endif %} |
