Sha256: dd0789f80296ef42910bf2aba2011eb6e30aa04d8db71fef195b3e80ff9117de

Contents?: true

Size: 1.9 KB

Versions: 9

Compression:

Stored size: 1.9 KB

Contents

class KuberKit::Configs
  IMAGE_DOCKERFILE_NAME = "Dockerfile".freeze
  IMAGE_BUILD_CONTEXT_DIR = "build_context".freeze
  IMAGE_TAG = 'latest'.freeze
  IMAGE_COMPILE_DIR = "/tmp/kuber_kit/image_builds"
  DOCKER_IGNORE_LIST = [
    'Dockerfile',
    '.DS_Store',
    '**/.DS_Store',
    '**/*.log',
    'node_modules',
    '.vagrant',
    '.vscode',
    'tmp',
    'logs'
  ]
  KUBER_KIT_DIRNAME           = "kuber_kit".freeze
  IMAGES_DIRNAME              = "images".freeze
  SERVICES_DIRNAME            = "services".freeze
  INFRA_DIRNAME               = "infrastructure".freeze
  CONFIGURATIONS_DIRNAME      = "configurations".freeze
  ARTIFACT_CLONE_DIR          = "/tmp/kuber_kit/artifacts"
  SERVICE_CONFIG_DIR          = "/tmp/kuber_kit/services"
  DEPLOY_STRATEGY             = :kubernetes
  COMPILE_SIMULTANEOUS_LIMIT  = 5

  attr_accessor :image_dockerfile_name, :image_build_context_dir, :image_tag,
                :docker_ignore_list, :image_compile_dir, 
                :kuber_kit_dirname, :images_dirname, :services_dirname, :infra_dirname, :configurations_dirname,
                :artifact_clone_dir, :service_config_dir, :deploy_strategy, :compile_simultaneous_limit

  def initialize
    @image_dockerfile_name      = IMAGE_DOCKERFILE_NAME
    @image_build_context_dir    = IMAGE_BUILD_CONTEXT_DIR
    @image_tag                  = IMAGE_TAG
    @image_compile_dir          = IMAGE_COMPILE_DIR
    @docker_ignore_list         = DOCKER_IGNORE_LIST
    @kuber_kit_dirname          = KUBER_KIT_DIRNAME
    @images_dirname             = IMAGES_DIRNAME
    @services_dirname           = SERVICES_DIRNAME
    @infra_dirname              = INFRA_DIRNAME
    @configurations_dirname     = CONFIGURATIONS_DIRNAME
    @artifact_clone_dir         = ARTIFACT_CLONE_DIR
    @service_config_dir         = SERVICE_CONFIG_DIR
    @deploy_strategy            = DEPLOY_STRATEGY
    @compile_simultaneous_limit = COMPILE_SIMULTANEOUS_LIMIT
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kuber_kit-0.2.7 lib/kuber_kit/configs.rb
kuber_kit-0.2.6 lib/kuber_kit/configs.rb
kuber_kit-0.2.5 lib/kuber_kit/configs.rb
kuber_kit-0.2.4 lib/kuber_kit/configs.rb
kuber_kit-0.2.3 lib/kuber_kit/configs.rb
kuber_kit-0.2.2 lib/kuber_kit/configs.rb
kuber_kit-0.2.1 lib/kuber_kit/configs.rb
kuber_kit-0.2.0 lib/kuber_kit/configs.rb
kuber_kit-0.1.9 lib/kuber_kit/configs.rb