Skip to content

Commit

Permalink
Merge pull request #76 from kube-logging/ci-1
Browse files Browse the repository at this point in the history
v1.16 image size and cleanup
  • Loading branch information
pepov authored Oct 9, 2023
2 parents c35dfcd + f79bf95 commit 4087237
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 188 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
fail-fast: false
matrix:
fluentd:
- v1.15-staging
- v1.15-ruby3
- v1.16

steps:
- name: Checkout
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
fail-fast: false
matrix:
fluentd:
- v1.15-staging
- v1.15-ruby3
- v1.16

Expand Down
123 changes: 0 additions & 123 deletions v1.15-staging/Dockerfile

This file was deleted.

28 changes: 0 additions & 28 deletions v1.15-staging/entrypoint.sh

This file was deleted.

8 changes: 0 additions & 8 deletions v1.15-staging/fluent.conf

This file was deleted.

23 changes: 0 additions & 23 deletions v1.15-staging/healthy.sh

This file was deleted.

9 changes: 5 additions & 4 deletions v1.16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ENV FLUENTD_VERSION 1.16.2

LABEL Description="Fluentd docker image" Vendor="Kube logging" Version="${FLUENTD_VERSION}"

ADD ./Gemfile /Gemfile

# Do not split this into multiple RUN!
# Docker creates a layer for every RUN-Statement
# therefore an 'apk delete' has no effect
Expand All @@ -24,10 +26,9 @@ RUN apk update \
build-base \
ruby-dev gnupg \
&& apk add $buildDeps \
&& echo 'gem: --no-document' >> /etc/gemrc
ADD ./Gemfile /Gemfile
RUN gem install bundler && bundle install
RUN apk del .build-deps $buildDeps \
&& echo 'gem: --no-document' >> /etc/gemrc \
&& gem install bundler && bundle install \
&& apk del .build-deps $buildDeps \
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem /usr/lib/ruby/gems/3.*/gems/fluentd-*/test

RUN addgroup -S fluent && adduser -S -G fluent fluent \
Expand Down

0 comments on commit 4087237

Please sign in to comment.