Class: Packer::Builder::Docker
Constant Summary
AMAZON_EBS, AMAZON_INSTANCE, DOCKER, NULL, VALID_BUILDER_TYPES, VIRTUALBOX_ISO, VMWARE_ISO, VMWARE_VMX
Instance Attribute Summary
Attributes inherited from DataObject
#data, #required
Instance Method Summary
collapse
get_builder, #name, types
Methods inherited from DataObject
#__add_array_of_array_of_strings, #__add_array_of_hashes, #__add_array_of_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_string, #__exclusive_key_error, #add_required, #deep_copy, #validate
Constructor Details
#initialize ⇒ Docker
Returns a new instance of Docker.
8
9
10
11
12
13
14
15
|
# File 'lib/packer/builders/docker.rb', line 8
def initialize
super
self.data['type'] = DOCKER
self.add_required(
'export_path',
'image'
)
end
|
Instance Method Details
#export_path(path) ⇒ Object
17
18
19
|
# File 'lib/packer/builders/docker.rb', line 17
def export_path(path)
self.__add_string('export_path', path)
end
|
#image(name) ⇒ Object
21
22
23
|
# File 'lib/packer/builders/docker.rb', line 21
def image(name)
self.__add_string('image', name)
end
|
#pull(bool) ⇒ Object
25
26
27
|
# File 'lib/packer/builders/docker.rb', line 25
def pull(bool)
self.__add_boolean('pull', bool)
end
|
#run_command(commands) ⇒ Object
29
30
31
|
# File 'lib/packer/builders/docker.rb', line 29
def run_command(commands)
self.__add_array_of_strings('run_command', commands)
end
|