Class: ComposeFileService

Inherits:
Object
  • Object
show all
Defined in:
lib/uffizzi/services/compose_file_service.rb

Constant Summary collapse

MAX_HOST_VOLUME_GZIP_FILE_SIZE =
1024 * 900
DEPENDENCY_CONFIG_USE_KIND =
:config_map
DEPENDENCY_VOLUME_USE_KIND =
:volume

Class Method Summary collapse

Class Method Details

.parse(compose_content, compose_file_dir) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/uffizzi/services/compose_file_service.rb', line 17

def parse(compose_content, compose_file_dir)
  compose_data = parse_compose_content_to_object(compose_content)

  services = compose_data['services']
  env_files_paths = prepare_env_files_paths(services).flatten.uniq
  config_files_paths = prepare_config_files_paths(compose_data['configs'])
  host_volumes_paths = prepare_host_volumes_paths(services)
  prepare_dependencies(compose_file_dir, env_files_paths, config_files_paths, host_volumes_paths)
end