diff --git a/docker_templates/ceilometer/ceilometer-alarm/build b/docker_templates/ceilometer/ceilometer-alarm/build deleted file mode 120000 index 43944faa00..0000000000 --- a/docker_templates/ceilometer/ceilometer-alarm/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-api/build b/docker_templates/ceilometer/ceilometer-api/build deleted file mode 120000 index 43944faa00..0000000000 --- a/docker_templates/ceilometer/ceilometer-api/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2 index eb3b9e060b..92a3b70d93 100644 --- a/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2 +++ b/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2 @@ -10,15 +10,12 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ {% endif %} {% elif install_type == 'source' %} -ADD ./ceilometer.tar / -RUN ln -s /ceilometer-* /ceilometer - -RUN cd /ceilometer \ +ADD ceilometer.tar / +RUN ln -s /ceilometer-* ceilometer \ && useradd --user-group ceilometer \ - && pip install -r requirements.txt \ - && pip install /ceilometer \ - && mkdir /etc/ceilometer /var/log/ceilometer \ + && pip --no-cache-dir install /ceilometer \ + && mkdir -p /etc/ceilometer /var/log/ceilometer /home/ceilometer \ && cp -r /ceilometer/etc/* /etc/ceilometer/ \ - && rm -rf /root/.cache + && chown -R ceilometer: /etc/ceilometer /var/log/ceilometer /home/ceilometer {% endif %} diff --git a/docker_templates/ceilometer/ceilometer-base/build b/docker_templates/ceilometer/ceilometer-base/build deleted file mode 120000 index 43944faa00..0000000000 --- a/docker_templates/ceilometer/ceilometer-base/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-central/build b/docker_templates/ceilometer/ceilometer-central/build deleted file mode 120000 index 43944faa00..0000000000 --- a/docker_templates/ceilometer/ceilometer-central/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-collector/build b/docker_templates/ceilometer/ceilometer-collector/build deleted file mode 120000 index 43944faa00..0000000000 --- a/docker_templates/ceilometer/ceilometer-collector/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-compute/build b/docker_templates/ceilometer/ceilometer-compute/build deleted file mode 120000 index 43944faa00..0000000000 --- a/docker_templates/ceilometer/ceilometer-compute/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-notification/build b/docker_templates/ceilometer/ceilometer-notification/build deleted file mode 120000 index 43944faa00..0000000000 --- a/docker_templates/ceilometer/ceilometer-notification/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file