From 65ed3c7f53ba19e8f221b293faa9021607c1f627 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Fri, 7 Aug 2015 18:48:27 +0000 Subject: [PATCH] Remove config-internal for gnocchi Change-Id: Icf74913d03a780cd7c59fbc26a55344f2a12fdfa Partially-implements: blueprint remove-config-internal --- .../binary/gnocchi/gnocchi-api/Dockerfile | 3 +- .../gnocchi/gnocchi-api/config-internal.sh | 1 - .../binary/gnocchi/gnocchi-base/Dockerfile | 2 - .../gnocchi/gnocchi-base/config-gnocchi.sh | 1 - .../binary/gnocchi/gnocchi-statsd/Dockerfile | 3 +- .../gnocchi/gnocchi-statsd/config-internal.sh | 1 - .../source/gnocchi/gnocchi-api/Dockerfile | 5 +- .../gnocchi/gnocchi-api/config-internal.sh | 1 - .../source/gnocchi/gnocchi-base/Dockerfile | 4 -- .../gnocchi/gnocchi-base/config-gnocchi.sh | 1 - .../source/gnocchi/gnocchi-statsd/Dockerfile | 5 +- .../gnocchi/gnocchi-statsd/config-internal.sh | 1 - .../gnocchi/gnocchi-api/config-external.sh | 0 .../gnocchi/gnocchi-api/config-internal.sh | 52 ------------------- docker/common/gnocchi/gnocchi-api/start.sh | 2 +- .../gnocchi/gnocchi-base/config-gnocchi.sh | 23 -------- .../gnocchi/gnocchi-statsd/config-external.sh | 0 .../gnocchi/gnocchi-statsd/config-internal.sh | 8 --- docker/common/gnocchi/gnocchi-statsd/start.sh | 2 +- docs/minimal-environment-vars.md | 24 +-------- 20 files changed, 12 insertions(+), 127 deletions(-) delete mode 120000 docker/centos/binary/gnocchi/gnocchi-api/config-internal.sh delete mode 120000 docker/centos/binary/gnocchi/gnocchi-base/config-gnocchi.sh delete mode 120000 docker/centos/binary/gnocchi/gnocchi-statsd/config-internal.sh delete mode 120000 docker/centos/source/gnocchi/gnocchi-api/config-internal.sh delete mode 120000 docker/centos/source/gnocchi/gnocchi-base/config-gnocchi.sh delete mode 120000 docker/centos/source/gnocchi/gnocchi-statsd/config-internal.sh mode change 100755 => 100644 docker/common/gnocchi/gnocchi-api/config-external.sh delete mode 100755 docker/common/gnocchi/gnocchi-api/config-internal.sh delete mode 100755 docker/common/gnocchi/gnocchi-base/config-gnocchi.sh mode change 100755 => 100644 docker/common/gnocchi/gnocchi-statsd/config-external.sh delete mode 100755 docker/common/gnocchi/gnocchi-statsd/config-internal.sh diff --git a/docker/centos/binary/gnocchi/gnocchi-api/Dockerfile b/docker/centos/binary/gnocchi/gnocchi-api/Dockerfile index cd5974a22d..eee474e374 100644 --- a/docker/centos/binary/gnocchi/gnocchi-api/Dockerfile +++ b/docker/centos/binary/gnocchi/gnocchi-api/Dockerfile @@ -6,5 +6,6 @@ RUN yum install -y openstack-gnocchi-api \ openstack-gnocchi-indexer-sqlalchemy \ && yum clean all -COPY ./start.sh /start.sh +COPY start.sh / + CMD ["/start.sh"] diff --git a/docker/centos/binary/gnocchi/gnocchi-api/config-internal.sh b/docker/centos/binary/gnocchi/gnocchi-api/config-internal.sh deleted file mode 120000 index 79578ce601..0000000000 --- a/docker/centos/binary/gnocchi/gnocchi-api/config-internal.sh +++ /dev/null @@ -1 +0,0 @@ -../../../../common/gnocchi/gnocchi-api/config-internal.sh \ No newline at end of file diff --git a/docker/centos/binary/gnocchi/gnocchi-base/Dockerfile b/docker/centos/binary/gnocchi/gnocchi-base/Dockerfile index e9d67da7ce..30c8fbae32 100644 --- a/docker/centos/binary/gnocchi/gnocchi-base/Dockerfile +++ b/docker/centos/binary/gnocchi/gnocchi-base/Dockerfile @@ -1,4 +1,2 @@ FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%% MAINTAINER Kolla Project (https://launchpad.net/kolla) - -COPY config-gnocchi.sh /opt/kolla/config-gnocchi.sh diff --git a/docker/centos/binary/gnocchi/gnocchi-base/config-gnocchi.sh b/docker/centos/binary/gnocchi/gnocchi-base/config-gnocchi.sh deleted file mode 120000 index 75a8a5e104..0000000000 --- a/docker/centos/binary/gnocchi/gnocchi-base/config-gnocchi.sh +++ /dev/null @@ -1 +0,0 @@ -../../../../common/gnocchi/gnocchi-base/config-gnocchi.sh \ No newline at end of file diff --git a/docker/centos/binary/gnocchi/gnocchi-statsd/Dockerfile b/docker/centos/binary/gnocchi/gnocchi-statsd/Dockerfile index 7998a3621e..354c312d05 100644 --- a/docker/centos/binary/gnocchi/gnocchi-statsd/Dockerfile +++ b/docker/centos/binary/gnocchi/gnocchi-statsd/Dockerfile @@ -3,5 +3,6 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla) RUN yum install -y openstack-gnocchi-statsd && yum clean all -COPY ./start.sh /start.sh +COPY start.sh / + CMD ["/start.sh"] diff --git a/docker/centos/binary/gnocchi/gnocchi-statsd/config-internal.sh b/docker/centos/binary/gnocchi/gnocchi-statsd/config-internal.sh deleted file mode 120000 index 9d9ebfa7d6..0000000000 --- a/docker/centos/binary/gnocchi/gnocchi-statsd/config-internal.sh +++ /dev/null @@ -1 +0,0 @@ -../../../../common/gnocchi/gnocchi-statsd/config-internal.sh \ No newline at end of file diff --git a/docker/centos/source/gnocchi/gnocchi-api/Dockerfile b/docker/centos/source/gnocchi/gnocchi-api/Dockerfile index 5c173f51e9..ad16c6e00a 100644 --- a/docker/centos/source/gnocchi/gnocchi-api/Dockerfile +++ b/docker/centos/source/gnocchi/gnocchi-api/Dockerfile @@ -1,8 +1,7 @@ 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/ +COPY start.sh / +COPY config-external.sh /opt/kolla/ CMD ["/start.sh"] diff --git a/docker/centos/source/gnocchi/gnocchi-api/config-internal.sh b/docker/centos/source/gnocchi/gnocchi-api/config-internal.sh deleted file mode 120000 index 79578ce601..0000000000 --- a/docker/centos/source/gnocchi/gnocchi-api/config-internal.sh +++ /dev/null @@ -1 +0,0 @@ -../../../../common/gnocchi/gnocchi-api/config-internal.sh \ No newline at end of file diff --git a/docker/centos/source/gnocchi/gnocchi-base/Dockerfile b/docker/centos/source/gnocchi/gnocchi-base/Dockerfile index 2be4324eca..3bcc441253 100644 --- a/docker/centos/source/gnocchi/gnocchi-base/Dockerfile +++ b/docker/centos/source/gnocchi/gnocchi-base/Dockerfile @@ -11,7 +11,3 @@ RUN cd /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"] diff --git a/docker/centos/source/gnocchi/gnocchi-base/config-gnocchi.sh b/docker/centos/source/gnocchi/gnocchi-base/config-gnocchi.sh deleted file mode 120000 index 75a8a5e104..0000000000 --- a/docker/centos/source/gnocchi/gnocchi-base/config-gnocchi.sh +++ /dev/null @@ -1 +0,0 @@ -../../../../common/gnocchi/gnocchi-base/config-gnocchi.sh \ No newline at end of file diff --git a/docker/centos/source/gnocchi/gnocchi-statsd/Dockerfile b/docker/centos/source/gnocchi/gnocchi-statsd/Dockerfile index 5c173f51e9..ad16c6e00a 100644 --- a/docker/centos/source/gnocchi/gnocchi-statsd/Dockerfile +++ b/docker/centos/source/gnocchi/gnocchi-statsd/Dockerfile @@ -1,8 +1,7 @@ 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/ +COPY start.sh / +COPY config-external.sh /opt/kolla/ CMD ["/start.sh"] diff --git a/docker/centos/source/gnocchi/gnocchi-statsd/config-internal.sh b/docker/centos/source/gnocchi/gnocchi-statsd/config-internal.sh deleted file mode 120000 index 9d9ebfa7d6..0000000000 --- a/docker/centos/source/gnocchi/gnocchi-statsd/config-internal.sh +++ /dev/null @@ -1 +0,0 @@ -../../../../common/gnocchi/gnocchi-statsd/config-internal.sh \ No newline at end of file diff --git a/docker/common/gnocchi/gnocchi-api/config-external.sh b/docker/common/gnocchi/gnocchi-api/config-external.sh old mode 100755 new mode 100644 diff --git a/docker/common/gnocchi/gnocchi-api/config-internal.sh b/docker/common/gnocchi/gnocchi-api/config-internal.sh deleted file mode 100755 index 411e9ae8ae..0000000000 --- a/docker/common/gnocchi/gnocchi-api/config-internal.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -set -e - -. /opt/kolla/kolla-common.sh -. /opt/kolla/config-gnocchi.sh - -check_required_vars KEYSTONE_ADMIN_TOKEN \ - KEYSTONE_AUTH_PROTOCOL \ - KEYSTONE_ADMIN_SERVICE_HOST \ - KEYSTONE_ADMIN_SERVICE_PORT \ - ADMIN_TENANT_NAME \ - GNOCCHI_DB_NAME \ - GNOCCHI_DB_USER \ - GNOCCHI_DB_PASSWORD \ - GNOCCHI_SERVICE_PROTOCOL \ - GNOCCHI_SERVICE_PORT \ - GNOCCHI_ARCHIVE_POLICY \ - GNOCCHI_STORAGE_BACKEND \ - GNOCCHI_KEYSTONE_USER \ - GNOCCHI_ADMIN_PASSWORD \ - GNOCCHI_API_SERVICE_HOST - -fail_unless_os_service_running keystone -fail_unless_db - -mysql -h ${MARIADB_SERVICE_HOST} -u root -p${DB_ROOT_PASSWORD} mysql < /openrc <