Sha256: 52085ba820069b0876feb583100dfeb409c5ddcf0dd1a225fce2e8f842eeb4ee

Contents?: true

Size: 631 Bytes

Versions: 5

Compression:

Stored size: 631 Bytes

Contents

module Kuby
  module Kubernetes
    module Plugins
      module RailsApp
        class Sqlite < Kuby::Kubernetes::Plugin
          attr_reader :definition

          def initialize(definition, *)
            @definition = definition
          end

          def after_configuration
            definition.docker.package_phase.add(:sqlite_dev)
            definition.docker.package_phase.add(:sqlite_client)
          end
        end
      end
    end
  end
end

Kuby.register_package(:sqlite_dev,
  debian: 'libsqlite3-dev',
  alpine: 'sqlite-dev'
)

Kuby.register_package(:sqlite_client,
  debian: 'sqlite3',
  alpine: 'sqlite'
)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kuby-core-0.7.2 lib/kuby/kubernetes/plugins/rails_app/sqlite.rb
kuby-core-0.7.1 lib/kuby/kubernetes/plugins/rails_app/sqlite.rb
kuby-core-0.7.0 lib/kuby/kubernetes/plugins/rails_app/sqlite.rb
kuby-core-0.6.1 lib/kuby/kubernetes/plugins/rails_app/sqlite.rb
kuby-core-0.6.0 lib/kuby/kubernetes/plugins/rails_app/sqlite.rb