Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
220168c9
Commit
220168c9
authored
Nov 07, 2016
by
Mik Vyatskov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix fluentd-gcp Dockerfile to reduce image size
parent
d2aabc85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
Dockerfile
cluster/addons/fluentd-gcp/fluentd-gcp-image/Dockerfile
+15
-13
No files found.
cluster/addons/fluentd-gcp/fluentd-gcp-image/Dockerfile
View file @
220168c9
...
...
@@ -30,27 +30,29 @@ ENV DEBIAN_FRONTEND noninteractive
# Install build tools
RUN
apt-get
-qq
update
&&
\
apt-get
install
-y
-qq
curl ca-certificates gcc make bash
sudo
&&
\
apt-get
install
-y
-qq
--reinstall
lsb-base lsb-release
# Install logging agent and required gems
RUN
/usr/bin/curl
-sSL
https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh | sh
&&
\
apt-get
install
-y
-qq
--reinstall
lsb-base lsb-release
&&
\
# Install logging agent and required gems
/usr/bin/curl -sSL https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh | sh && \
sed -i -e "s/USER=td-agent/USER=root/" -e "s/GROUP=td-agent/GROUP=root/" /etc/init.d/td-agent && \
td-agent-gem install --no-document fluent-plugin-record-reformer -v 0.8.2 && \
td-agent-gem install --no-document fluent-plugin-systemd -v 0.0.5 && \
td-agent-gem
install
--no-document
fluent-plugin-google-cloud
-v
0.5.2
# Remove build tools
RUN
apt-get remove
-y
-qq
gcc make
&&
\
td-agent-gem install --no-document fluent-plugin-google-cloud -v 0.5.2 && \
# Remove build tools
apt-get remove -y -qq gcc make && \
apt-get autoremove -y -qq && \
apt-get clean
-qq
# Remove unnecessary files
RUN
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
apt-get clean -qq && \
# Remove unnecessary files
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
/opt/td-agent/embedded/share/doc \
/opt/td-agent/embedded/share/gtk-doc \
/opt/td-agent/embedded/lib/postgresql \
/opt/td-agent/embedded/bin/postgres \
/opt/td-agent/embedded/share/postgresql \
/etc/td-agent/td-agent.conf
# Copy the Fluentd configuration files for logging Docker container logs.
# Either configuration file can be used by specifying `-c <file>` as a command
# line argument.
RUN
rm
/etc/td-agent/td-agent.conf
COPY
google-fluentd.conf /etc/td-agent/google-fluentd.conf
COPY
google-fluentd-journal.conf /etc/td-agent/google-fluentd-journal.conf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment