| 1 | package Eixo::Docker::HostConfig; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Eixo::Base::Clase qw(Eixo::Rest::Product); | ||
| 7 | |||
| 8 | has( | ||
| 9 | Binds => [], | ||
| 10 | PortBindings => {}, | ||
| 11 | BlkioWeight => 0, | ||
| 12 | CapAdd => undef, | ||
| 13 | CapDrop => undef, | ||
| 14 | ContainerIDFile => "", | ||
| 15 | CpusetCpus => "", | ||
| 16 | CpusetMems =>"", | ||
| 17 | CpuShares => 0, | ||
| 18 | CpuPeriod => 100000, | ||
| 19 | CpuQuota => 0, | ||
| 20 | Devices => [], | ||
| 21 | Dns => undef, | ||
| 22 | DnsSearch => undef, | ||
| 23 | ExtraHosts => undef, | ||
| 24 | IpcMode => "", | ||
| 25 | Links => undef, | ||
| 26 | LxcConf => [], | ||
| 27 | Memory => 0, | ||
| 28 | MemorySwap => 0, | ||
| 29 | MemorySwappiness => -1, | ||
| 30 | OomKillDisable => undef, | ||
| 31 | NetworkMode => "bridge", | ||
| 32 | Privileged => undef, | ||
| 33 | ReadonlyRootfs => undef, | ||
| 34 | PublishAllPorts => undef, | ||
| 35 | RestartPolicy => { | ||
| 36 | MaximumRetryCount => 2, | ||
| 37 | Name => "on-failure" | ||
| 38 | }, | ||
| 39 | LogConfig => { | ||
| 40 | Config => {}, | ||
| 41 | Type => "json-file" | ||
| 42 | }, | ||
| 43 | SecurityOpt => undef, | ||
| 44 | VolumesFrom => undef, | ||
| 45 | Ulimits => [], | ||
| 46 | CgroupParent => "", | ||
| 47 | ConsoleSize => [0,0], | ||
| 48 | PidMode => "", | ||
| 49 | UTSMode => "", | ||
| 50 | GroupAdd => undef, | ||
| 51 | ); | ||
| 52 | |||
| 53 | |||
| 54 | # api#v1.13 | ||
| 55 | # 'Binds' => undef, | ||
| 56 | # 'NetworkMode' => '', | ||
| 57 | # 'Privileged' => $VAR1->{'State'}{'Paused'}, | ||
| 58 | # 'ContainerIDFile' => '', | ||
| 59 | # 'DnsSearch' => undef, | ||
| 60 | # 'Links' => undef, | ||
| 61 | # 'LxcConf' => undef, | ||
| 62 | # 'PortBindings' => undef, | ||
| 63 | # 'VolumesFrom' => undef, | ||
| 64 | # 'PublishAllPorts' => $VAR1->{'State'}{'Paused'}, | ||
| 65 | # 'Dns' => undef |