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