用烧杯testingdocker实例
我有一套运行在docker主机上的Beakertesting。 我不知道Docker如何处理交换文件的复杂性,但它似乎并不喜欢它。 Puppet代码如下所示: exec { 'Create swap file': command => "/bin/dd if=/dev/zero of=${swapfile} bs=1M count=${swapfilesize_mb}", creates => $swapfile, } exec { 'Attach swap file': command => "/sbin/mkswap ${swapfile} && /sbin/swapon ${swapfile}", require => Exec['Create swap file'], unless => "/sbin/swapon -s | grep ${swapfile}", } if $add_mount { mount { 'swap': ensure => present, fstype => […]