Commit 20a0905d authored by Satnam Singh's avatar Satnam Singh

New Fluentd to Cloud Logging Dockerfile with args

parent 39c5bf36
......@@ -11,10 +11,9 @@ MAINTAINER Satnam Singh "satnam@google.com"
# Disable prompts from apt.
ENV DEBIAN_FRONTEND noninteractive
ENV OPTS_APT -y --force-yes --no-install-recommends
RUN apt-get -q update && \
apt-get -y install curl && \
apt-get install -y curl && \
apt-get clean && \
curl -s https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh | sudo bash
......@@ -22,4 +21,4 @@ RUN apt-get -q update && \
COPY google-fluentd.conf /etc/google-fluentd/google-fluentd.conf
# Start Fluentd to pick up our config that watches Docker container logs.
CMD /usr/sbin/google-fluentd -qq > /var/log/google-fluentd.log
CMD /usr/sbin/google-fluentd "$FLUENTD_ARGS" > /var/log/google-fluentd.log
......@@ -6,7 +6,7 @@
.PHONY: build push
TAG = 1.3
TAG = 1.4
build:
docker build -t gcr.io/google_containers/fluentd-gcp:$(TAG) .
......
......@@ -16,7 +16,7 @@
type tail
format none
time_key time
path /varlog/containers/*/*.log
path /varlog/containers/*.log
pos_file /varlog/gcp-containers.log.pos
time_format %Y-%m-%dT%H:%M:%S
tag kubernetes.*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment