Sha256: ca42280ebf5eee8e55ff0f69dc7ae8bdd3ad148f410f7f491e782cc47c2d5291

Contents?: true

Size: 322 Bytes

Versions: 153

Compression:

Stored size: 322 Bytes

Contents

require 'yaml'
require_relative 'common'

module Kontena::Cli::Apps
  class DockerfileGenerator
    include Common

    def generate(base_image)

      dockerfile = File.new('Dockerfile', 'w')
      dockerfile.puts "FROM #{base_image}"
      dockerfile.puts 'CMD ["/start", "web"]'
      dockerfile.close
    end
  end
end

Version data entries

153 entries across 153 versions & 2 rubygems

Version Path
kontena-cli-1.3.0 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.0.rc4 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.0.rc3 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.0.rc2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.0.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.0.pre2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.0.pre1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.2.rc2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.2.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.1.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.0 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.0.rc3 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.0.rc2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.0.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.0.pre3 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.0.pre2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.1.6 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.2.0.pre1 lib/kontena/cli/apps/dockerfile_generator.rb