Skip to content

Commit

Permalink
Merge pull request kubernetes#4876 from satnam6502/fluentd-gcp
Browse files Browse the repository at this point in the history
Update Fluentd to Cloud Logging image
  • Loading branch information
zmerlynn committed Feb 27, 2015
2 parents 7fe7de4 + 16f49f6 commit 08402d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: v1beta2
id: fluentd-to-gcp
containers:
- name: fluentd-gcp-container
image: kubernetes/fluentd-gcp
image: kubernetes/fluentd-gcp:1.0
volumeMounts:
- name: containers
mountPath: /var/lib/docker/containers
Expand Down
15 changes: 3 additions & 12 deletions contrib/logging/fluentd-gcp-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,9 @@ ENV DEBIAN_FRONTEND noninteractive
ENV OPTS_APT -y --force-yes --no-install-recommends

RUN apt-get -q update && \
apt-get -y install apt-utils adduser && \
apt-get clean

ADD google-fluentd_1.0.0-0_amd64.deb /etc/google-fluentd/pkg/google-fluentd_1.0.0-0_amd64.deb
RUN dpkg -i /etc/google-fluentd/pkg/google-fluentd_1.0.0-0_amd64.deb
RUN /opt/google-fluentd/embedded/bin/gem install google-api-client
ADD out_google_cloud.rb /etc/google-fluentd/plugin/out_google_cloud.rb
ADD agent.conf /etc/google-fluentd/google-fluentd.conf
COPY catch-all-inputs.tar.gz /tmp/catch-all-inputs.tar.gz
RUN tar -C /etc/google-fluentd -zxf /tmp/catch-all-inputs.tar.gz
RUN sed -i~ -e "s/\(USER\|GROUP\)=google-fluentd/\1=root/;" /etc/init.d/google-fluentd
RUN sed -i~ -e 's/ --use-v1-config//' /etc/init.d/google-fluentd
apt-get -y install curl && \
apt-get clean && \
curl -s https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh | sudo bash

# Copy the Fluentd configuration file for logging Docker container logs.
COPY google-fluentd.conf /etc/google-fluentd/google-fluentd.conf
Expand Down
7 changes: 5 additions & 2 deletions contrib/logging/fluentd-gcp-image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

.PHONY: build push


TAG = 1.0

build:
sudo docker build -t kubernetes/fluentd-gcp .
sudo docker build -t kubernetes/fluentd-gcp:$(TAG) .

push:
sudo docker push kubernetes/fluentd-gcp
sudo docker push kubernetes/fluentd-gcp:$(TAG)

0 comments on commit 08402d7

Please sign in to comment.