stack-1.5.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Types.Docker

Description

Docker types.

Synopsis

Documentation

data DockerOpts Source #

Docker configuration.

Constructors

DockerOpts 

Fields

data DockerOptsMonoid Source #

An uninterpreted representation of docker options. Configurations may be "cascaded" using mappend (left-biased).

Constructors

DockerOptsMonoid 

Fields

Instances

Show DockerOptsMonoid Source # 
Generic DockerOptsMonoid Source # 
Monoid DockerOptsMonoid Source #

Left-biased combine Docker options

FromJSON (WithJSONWarnings DockerOptsMonoid) Source #

Decode uninterpreted docker options from JSON/YAML.

type Rep DockerOptsMonoid Source # 
type Rep DockerOptsMonoid = D1 (MetaData "DockerOptsMonoid" "Stack.Types.Docker" "stack-1.5.1-5e9OdzxbAr7JlXF5YdN55t" False) (C1 (MetaCons "DockerOptsMonoid" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidDefaultEnable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Any)) (S1 (MetaSel (Just Symbol "dockerMonoidEnable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidRepoOrImage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First DockerMonoidRepoOrImage))) (S1 (MetaSel (Just Symbol "dockerMonoidRegistryLogin") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidRegistryUsername") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First String))) (S1 (MetaSel (Just Symbol "dockerMonoidRegistryPassword") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First String)))) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidAutoPull") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool))) (S1 (MetaSel (Just Symbol "dockerMonoidDetach") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidPersist") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool))) (S1 (MetaSel (Just Symbol "dockerMonoidContainerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First String)))) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidRunArgs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [String])) (S1 (MetaSel (Just Symbol "dockerMonoidMount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Mount])))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidEnv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [String])) (S1 (MetaSel (Just Symbol "dockerMonoidDatabasePath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First (Path Abs File))))) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidStackExe") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First DockerStackExe))) ((:*:) (S1 (MetaSel (Just Symbol "dockerMonoidSetUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (First Bool))) (S1 (MetaSel (Just Symbol "dockerMonoidRequireDockerVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 IntersectingVersionRange))))))))

data DockerStackExe Source #

Where to get the stack executable to run in Docker containers

Constructors

DockerStackExeDownload

Download from official bindist

DockerStackExeHost

Host's stack (linux-x86_64 only)

DockerStackExeImage

Docker image's stack (versions must match)

DockerStackExePath (Path Abs File)

Executable at given path

data Mount Source #

Docker volume mount.

Constructors

Mount String String 

Instances

newtype VersionRangeJSON Source #

Newtype for non-orphan FromJSON instance.

data StackDockerException Source #

Exceptions thrown by Stack.Docker.

Constructors

DockerMustBeEnabledException

Docker must be enabled to use the command.

OnlyOnHostException

Command must be run on host OS (not in a container).

InspectFailedException String

docker inspect failed.

NotPulledException String

Image does not exist.

InvalidCleanupCommandException String

Input to docker cleanup has invalid command.

InvalidImagesOutputException String

Invalid output from docker images.

InvalidPSOutputException String

Invalid output from docker ps.

InvalidInspectOutputException String

Invalid output from docker inspect.

PullFailedException String

Could not pull a Docker image.

DockerTooOldException Version Version

Installed version of docker below minimum version.

DockerVersionProhibitedException [Version] Version

Installed version of docker is prohibited.

BadDockerVersionException VersionRange Version

Installed version of docker is out of range specified in config file.

InvalidVersionOutputException

Invalid output from docker --version.

HostStackTooOldException Version (Maybe Version)

Version of stack on host is too old for version in image.

ContainerStackTooOldException Version Version

Version of stack in container/image is too old for version on host.

CannotDetermineProjectRootException

Can't determine the project root (where to put docker sandbox).

DockerNotInstalledException

docker --version failed.

UnsupportedStackExeHostPlatformException

Using host stack-exe on unsupported platform.

DockerStackExeParseException String

stack-exe option fails to parse.

dockerEnableArgName :: Text Source #

Docker enable argument name.

dockerRepoArgName :: Text Source #

Docker repo arg argument name.

dockerImageArgName :: Text Source #

Docker image argument name.

dockerRegistryLoginArgName :: Text Source #

Docker registry login argument name.

dockerRegistryUsernameArgName :: Text Source #

Docker registry username argument name.

dockerRegistryPasswordArgName :: Text Source #

Docker registry password argument name.

dockerAutoPullArgName :: Text Source #

Docker auto-pull argument name.

dockerDetachArgName :: Text Source #

Docker detach argument name.

dockerRunArgsArgName :: Text Source #

Docker run args argument name.

dockerMountArgName :: Text Source #

Docker mount argument name.

dockerEnvArgName :: Text Source #

Docker environment variable argument name.

dockerContainerNameArgName :: Text Source #

Docker container name argument name.

dockerPersistArgName :: Text Source #

Docker persist argument name.

dockerDatabasePathArgName :: Text Source #

Docker database path argument name.

dockerStackExeArgName :: Text Source #

Docker database path argument name.

dockerStackExeDownloadVal :: String Source #

Value for --docker-stack-exe=download

dockerStackExeHostVal :: String Source #

Value for --docker-stack-exe=host

dockerStackExeImageVal :: String Source #

Value for --docker-stack-exe=image

dockerSetUserArgName :: Text Source #

Docker set-user argument name

dockerRequireDockerVersionArgName :: Text Source #

Docker require-version argument name

dockerEntrypointArgName :: String Source #

Argument name used to pass docker entrypoint data (only used internally)

dockerCmdName :: String Source #

Command-line argument for "docker"

dockerPullCmdName :: String Source #

Command-line argument for docker pull.

dockerCleanupCmdName :: String Source #

Command-line argument for docker cleanup.

reExecArgName :: String Source #

Command-line option for --internal-re-exec-version.

dockerContainerPlatform :: Platform Source #

Platform that Docker containers run