From 303da8b036065a1cdc1ca57508f09aab065181f0 Mon Sep 17 00:00:00 2001 From: Satnam Singh Date: Mon, 13 Oct 2014 18:27:39 +0000 Subject: [PATCH] Dockerfile and build script for fluentd-elasticsearch image --- contrib/logging/fluentd-es-image/Dockerfile | 5 ++--- contrib/logging/fluentd-es-image/build.sh | 8 ++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/contrib/logging/fluentd-es-image/Dockerfile b/contrib/logging/fluentd-es-image/Dockerfile index ff6b9a1e344..dc649a7c839 100644 --- a/contrib/logging/fluentd-es-image/Dockerfile +++ b/contrib/logging/fluentd-es-image/Dockerfile @@ -1,9 +1,8 @@ # This Dockerfile will build an image that is configured # to run Fluentd with an Elasticsearch plug-in and the # provided configuration file. -# TODO(satnam): Use a lighter base image, e.g. some form of busybox. -# The image acts as an executable for the binary /usr/sbin/td-agent -# which runs fluentd with the default flag -v (which can be over-ridden). +# TODO(satnam6502): Use a lighter base image, e.g. some form of busybox. +# The image acts as an executable for the binary /usr/sbin/td-agent. # Note that fluentd is run with root permssion to allow access to # log files with root only access under /var/lib/docker/containers/* # Please see http://docs.fluentd.org/articles/install-by-deb for more diff --git a/contrib/logging/fluentd-es-image/build.sh b/contrib/logging/fluentd-es-image/build.sh index 6810cba13bd..5ada3b7feda 100755 --- a/contrib/logging/fluentd-es-image/build.sh +++ b/contrib/logging/fluentd-es-image/build.sh @@ -14,5 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -docker build -t google/fluentd-elasticsearch . -docker push google/lambda-fluentd \ No newline at end of file + +# Build the fluentd-elasticsearch image and push +# to google/fluentd-elasticsearch. + +sudo docker build -t google/fluentd-elasticsearch . +sudo docker push google/fluentd-elasticsearch