Sha256: 0d599e89a09d9a41cbd8eb5a79ce8fabbf2a45998a4a3cb6bb7742bf013197cc

Contents?: true

Size: 701 Bytes

Versions: 25

Compression:

Stored size: 701 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 = false
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-kubernetes-metrics-*.gem'], 'docker/'
    sh "docker build --no-cache --pull --build-arg VERSION=$(cat VERSION) --no-cache -t splunk/connect-for-kubernetes:#{args.tag} ./docker"
  end
end

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
hbrewster-fluent-plugin-kubernetes-metrics-1.1.7 Rakefile
hbrewster-fluent-plugin-kubernetes-metrics-1.1.6 Rakefile
fluent-plugin-kubernetes-metrics-1.1.6 Rakefile
fluent-plugin-kubernetes-metrics-1.1.5 Rakefile
fluent-plugin-kubernetes-metrics-1.1.4 Rakefile