Sha256: 7d7ce58f5f8f46e0172b1d3be1f1ac6972b1e8837a48833d9c3fe82286b6863b

Contents?: true

Size: 650 Bytes

Versions: 3

Compression:

Stored size: 650 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/testtask'
require 'rake/clean'

CLEAN.concat FileList[
  'docker/*.gem',
  'pkg'
]

Rake::TestTask.new(:test) do |t|
  t.libs.push('lib', 'test')
  t.test_files = FileList['test/**/test_*.rb']
  t.verbose = true
  t.warning = true
end

task default: [:test]

namespace :docker do
  desc 'Build docker image'
  task :build, [:tag] => :build do |t, args|
    raise 'Argument `tag` was not provided.' unless args.tag

    cp Dir['pkg/fluent-plugin-k8s-metrics-agg-*.gem'], 'docker/'
    sh "docker build --no-cache -t splunk/fluent-plugin-k8s-metrics-agg:#{args.tag} ./docker"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fluent-plugin-k8s-metrics-agg-1.1.2 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.1 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.0 Rakefile