add Docker.Container field labels containerImage and containerHost

This commit is contained in:
Antoine Eiche 2015-05-11 12:56:01 +02:00 committed by Joey Hess
parent 4b5b9f253f
commit 3790a65dd5
1 changed files with 5 additions and 2 deletions

View File

@ -16,7 +16,7 @@ module Propellor.Property.Docker (
tweaked,
Image,
ContainerName,
Container,
Container(..),
-- * Container configuration
dns,
hostname,
@ -76,7 +76,10 @@ configured = prop `requires` installed
type ContainerName = String
-- | A docker container.
data Container = Container Image Host
data Container = Container
{ containerImage :: Image
, containerHost :: Host
}
instance PropAccum Container where
(Container i h) & p = Container i (h & p)