From 73dd7615ac15812980b332f07c3c28e77ae3546d Mon Sep 17 00:00:00 2001 From: Mathias Ewald Date: Sat, 23 Jul 2016 17:30:24 +0000 Subject: [PATCH] Added influxdb container Change-Id: I6f2f6f941c5cdff0517f8c3b8eb86cb2752984ca Partially-Implements: Blueprint performance-monitoring --- docker/influxdb/Dockerfile.j2 | 17 +++++++++++++++++ docker/influxdb/influxdb_sudoers | 1 + 2 files changed, 18 insertions(+) create mode 100644 docker/influxdb/Dockerfile.j2 create mode 100644 docker/influxdb/influxdb_sudoers diff --git a/docker/influxdb/Dockerfile.j2 b/docker/influxdb/Dockerfile.j2 new file mode 100644 index 0000000000..1550306eaf --- /dev/null +++ b/docker/influxdb/Dockerfile.j2 @@ -0,0 +1,17 @@ +FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} +MAINTAINER {{ maintainer }} +{% import "macros.j2" as macros with context %} + +{% set influxdb_packages = ['influxdb'] %} +RUN {{ macros.install_packages(influxdb_packages | customizable("packages")) }} + +COPY influxdb_sudoers /etc/sudoers.d/kolla_influxdb_sudoers +RUN chmod 750 /etc/sudoers.d \ + && chmod 440 /etc/sudoers.d/kolla_influxdb_sudoers \ + && usermod -a -G kolla influxdb + +{% block influxdb_footer %}{% endblock %} +{% block footer %}{% endblock %} +{{ include_footer }} + +USER influxdb diff --git a/docker/influxdb/influxdb_sudoers b/docker/influxdb/influxdb_sudoers new file mode 100644 index 0000000000..a9757b264e --- /dev/null +++ b/docker/influxdb/influxdb_sudoers @@ -0,0 +1 @@ +%kolla ALL=(root) NOPASSWD: /usr/bin/chown -R influxdb\: /var/lib/influxdb, /bin/chown -R influxdb\: /var/lib/influxdb