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.5 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.5.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-plugin-app-command-0.1.0 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-plugin-app-command-0.1.0.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.4.0.pre6 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.4.0.pre5 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.4.0.pre4 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.4.0.pre3 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.4.0.pre2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.4.0.pre1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.4 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.4.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.3 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.3.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.2.rc2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.2.rc1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.1 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.1.rc2 lib/kontena/cli/apps/dockerfile_generator.rb
kontena-cli-1.3.1.rc1 lib/kontena/cli/apps/dockerfile_generator.rb