class KuberKit::ImageCompiler::Compiler
Public Instance Methods
compile(shell, image, builds_dir)
click to toggle source
# File lib/kuber_kit/image_compiler/compiler.rb, line 9 def compile(shell, image, builds_dir) image_build_dir = File.join(builds_dir, image.name.to_s) context_helper = context_helper_factory.build_image_context(shell, image) image_build_dir_creator.create(shell, image, image_build_dir, context_helper: context_helper) result = image_builder.build(shell, image, image_build_dir, context_helper: context_helper) image_build_dir_creator.cleanup(shell, image_build_dir) result end