Sha256: 4059872f467852b56996dc5c2b411bf70610f18e1e087798426812382be17410
Contents?: true
Size: 629 Bytes
Versions: 31
Compression:
Stored size: 629 Bytes
Contents
require 'beaker-hostgenerator/data' require 'beaker-hostgenerator/hypervisor' require 'deep_merge' module BeakerHostGenerator module Hypervisor class Docker < BeakerHostGenerator::Hypervisor::Interface include BeakerHostGenerator::Data def generate_node(node_info, base_config, bhg_version) base_config['docker_cmd'] = ['/sbin/init'] base_config['image'] = node_info['ostype'].sub(/(\d)/, ':\1') base_config['image'].sub!(/(\d{2})/, '\1.') if node_info['ostype'] =~ /^ubuntu/ return base_generate_node(node_info, base_config, bhg_version, :docker) end end end end
Version data entries
31 entries across 31 versions & 1 rubygems