Sha256: d0b6b121e48401f76b9df4fa508c246f07347bebd415ff8141b335c687ab1b3d

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

module Opsk 
  class Dockerize < Thor::Group
    include Thorable, Thor::Actions

    argument :from, :type => :string, :desc => 'Which source image to use'
    argument :os_type, :type=> :string, :desc => 'Flavor of container Ubuntu/Centos'


    desc 'Creates a docker image using the current opsk sandbox'

    def create_dockerfile
	template("templates/#{type_of}/docker/#{os_type}_docker.erb", 'Dockerfile')
    end

    def docker_build
	template("templates/docker_build.erb", 'docker_build.sh')
	chmod('docker_build.sh', 0755)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opskeleton-0.6.7 lib/opskeleton/dockerize.rb