Sha256: 951c73b2953fb27bc731c56e04213439c398594629afab3bb78ee6bfd4de6d1d

Contents?: true

Size: 795 Bytes

Versions: 16

Compression:

Stored size: 795 Bytes

Contents

require "bundler/gem_tasks"

require_relative 'lib/lux/dockertasks.rb'

DockerImageTask.new('busybox')
DockerImageTask.new('ubuntu:trusty')
DockerImageTask.new('ubuntu:reedy', :reedy)
DockerImageTask.new('quay.io/turnitin/seu-tools:1.0') do |t|
  puts "You want me to build the image #{t.image}:#{t.tag}?"
  fail "Not from here I can't..."
end

desc "Run Busybox"
task :runb => 'busybox' do
  sh "docker run -it busybox"
end

desc "Run Ubuntu Trusty"
task :runu => :ubuntu do
  sh "docker run -it ubuntu:trusty /bin/bash"
end

desc "Run Ubuntu Reedy"
task :runr => :reedy do
  sh "docker run -it ubuntu:reedy /bin/bash"
end

desc "Run Tools"
task :runt => 'quay.io/turnitin/seu-tools' do
  sh "docker run -it quay.io/turnitin/seu-tools /bin/bash"
end

task :default => %w{ runb runu runt runr }

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lux-1.1.4 Rakefile.test
lux-1.1.3 Rakefile.test
lux-1.1.2 Rakefile.test
lux-1.1.1 Rakefile.test
lux-1.1.0 Rakefile.test
lux-1.0.9 Rakefile.test
lux-1.0.8 Rakefile.test
lux-1.0.7 Rakefile.test
lux-1.0.6 Rakefile.test
lux-1.0.5 Rakefile.test
lux-1.0.4 Rakefile.test
lux-1.0.3 Rakefile.test
lux-1.0.2 Rakefile.test
lux-0.9 Rakefile.test
lux-0.7 Rakefile.test
lux-0.6 Rakefile.test