Skip to content

Commit

Permalink
Merge pull request sous-chefs#279 from jperville/container_memory_wit…
Browse files Browse the repository at this point in the history
…h_unit

Allow docker_container memory to have String value (eg. memory='1G').
  • Loading branch information
bflad committed Mar 18, 2015
2 parents 3ed149b + 6601b8e commit e2fac3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ init_template | Template to use for init configuration | String | nil
link | Add link to another container | String, Array | nil
label | Options to pass to underlying labeling system | String | nil
lxc_conf | Custom LXC options | String, Array | nil
memory | Set memory limit for container | Fixnum | nil
memory | Set memory limit for container | Fixnum, String | nil
net | [Configure networking](http://docs.docker.io/reference/run/#network-settings) for container | String | nil
networking (*DEPRECATED*) | Configure networking for container | TrueClass, FalseClass | true
opt | Custom driver options | String, Array | nil
Expand Down
2 changes: 1 addition & 1 deletion resources/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
attribute :link, :kind_of => [String, Array]
attribute :label, :kind_of => [String]
attribute :lxc_conf, :kind_of => [String, Array]
attribute :memory, :kind_of => [Fixnum]
attribute :memory, :kind_of => [Fixnum, String]
attribute :message, :kind_of => [String]
attribute :net, :kind_of => [String], :regex => [
/(host|bridge|none)/, /container:.*/
Expand Down

0 comments on commit e2fac3d

Please sign in to comment.