Skip to content

Commit ff200ae

Browse files
authored
Merge pull request #3498 from wolfi-dev/new/kube-fluentd-operator
kube-fluentd-operator: remove unnecessary files from final package
2 parents cbd7488 + 2f59465 commit ff200ae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

kube-fluentd-operator.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package:
22
name: kube-fluentd-operator
33
version: 1.17.4
4-
epoch: 3
4+
epoch: 4
55
description: Auto-configuration of Fluentd daemon-set based on Kubernetes metadata
66
copyright:
77
- license: MIT
@@ -49,10 +49,13 @@ pipeline:
4949
expected-commit: 0310b4eb0ed747c0eb192db998d67dead5faa1b7
5050

5151
- runs: |
52+
echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc
53+
5254
cd base-image
5355
GEM_DIR=${{targets.destdir}}$(ruby -e 'puts Gem.default_dir')
5456
mkdir -p ${GEM_DIR}
5557
bundle config set --local path ${GEM_DIR}
58+
bundle config set --local without 'development test'
5659
bundle install
5760
5861
mkdir -p ${{targets.destdir}}/etc/fluent/plugin
@@ -66,8 +69,12 @@ pipeline:
6669
git checkout ${{vars.FLUENT_PLUGIN_GOOGLE_CLOUD_COMMIT}}
6770
6871
bundle config set --local path ${GEM_DIR}
72+
bundle config set --local without 'development test'
6973
bundle install
7074
75+
# remove cache to avoid including it in the package
76+
rm -rf ${{targets.destdir}}/$(ruby -e "puts File.join(Gem.default_dir, 'ruby', RbConfig::CONFIG['ruby_version'])")/cache
77+
7178
- uses: strip
7279

7380
- runs: |

0 commit comments

Comments
 (0)