Added shm_size.

This commit is contained in:
Fabian Schlenz 2020-11-06 06:45:33 +01:00
parent 6e7624a245
commit 5a562e2e90

2
dup.rb
View File

@ -38,6 +38,7 @@ MAPPINGS = [
['entrypoint', '--entrypoint', lambda{|c,i| (ep=c.Config.Entrypoint) == i.Config.Entrypoint ? nil : ep}, {:allow_empty=>true}],
['labels', '--label', lambda{|c,i| l=Hash[c.Config.Labels.to_h.delete_if{|k,v| i.Config.Labels[k]==v rescue false}.map{|k,v| [k.to_s, v]}] ; l}],
['hostname', '--hostname'],
['shm_size', '--shm-size'],
['working_dir', '--workdir', lambda{|c,i| (wd=c.Config.WorkingDir) == i.Config.WorkingDir ? nil : wd}],
['init', '--init', lambda{|c,i| c.Config.Init}, {:type=>:switch}],
['image', nil, lambda{|c,i| c.Config.Image}],
@ -96,6 +97,7 @@ def get_sample(name="container")
remove: false
stop_signal: SIGUSR1
stop_grace_period: 5
shm_size: 256M
before_build:
- "echo 'Starting build'"