Safe Haskell | None |
---|---|
Language | Haskell2010 |
Docker types.
- data DockerOpts = DockerOpts {
- dockerEnable :: !Bool
- dockerImage :: !String
- dockerRegistryLogin :: !Bool
- dockerRegistryUsername :: !(Maybe String)
- dockerRegistryPassword :: !(Maybe String)
- dockerAutoPull :: !Bool
- dockerDetach :: !Bool
- dockerPersist :: !Bool
- dockerContainerName :: !(Maybe String)
- dockerRunArgs :: ![String]
- dockerMount :: ![Mount]
- dockerEnv :: ![String]
- dockerDatabasePath :: !(Path Abs File)
- dockerStackExe :: !(Maybe DockerStackExe)
- dockerSetUser :: !(Maybe Bool)
- dockerRequireDockerVersion :: !VersionRange
- data DockerOptsMonoid = DockerOptsMonoid {
- dockerMonoidDefaultEnable :: !Any
- dockerMonoidEnable :: !(First Bool)
- dockerMonoidRepoOrImage :: !(First DockerMonoidRepoOrImage)
- dockerMonoidRegistryLogin :: !(First Bool)
- dockerMonoidRegistryUsername :: !(First String)
- dockerMonoidRegistryPassword :: !(First String)
- dockerMonoidAutoPull :: !(First Bool)
- dockerMonoidDetach :: !(First Bool)
- dockerMonoidPersist :: !(First Bool)
- dockerMonoidContainerName :: !(First String)
- dockerMonoidRunArgs :: ![String]
- dockerMonoidMount :: ![Mount]
- dockerMonoidEnv :: ![String]
- dockerMonoidDatabasePath :: !(First (Path Abs File))
- dockerMonoidStackExe :: !(First DockerStackExe)
- dockerMonoidSetUser :: !(First Bool)
- dockerMonoidRequireDockerVersion :: !IntersectingVersionRange
- data DockerStackExe
- parseDockerStackExe :: MonadThrow m => String -> m DockerStackExe
- data Mount = Mount String String
- data DockerMonoidRepoOrImage
- newtype VersionRangeJSON = VersionRangeJSON {}
- data StackDockerException
- = DockerMustBeEnabledException
- | OnlyOnHostException
- | InspectFailedException String
- | NotPulledException String
- | InvalidCleanupCommandException String
- | InvalidImagesOutputException String
- | InvalidPSOutputException String
- | InvalidInspectOutputException String
- | PullFailedException String
- | DockerTooOldException Version Version
- | DockerVersionProhibitedException [Version] Version
- | BadDockerVersionException VersionRange Version
- | InvalidVersionOutputException
- | HostStackTooOldException Version (Maybe Version)
- | ContainerStackTooOldException Version Version
- | CannotDetermineProjectRootException
- | DockerNotInstalledException
- | UnsupportedStackExeHostPlatformException
- | DockerStackExeParseException String
- dockerEnableArgName :: Text
- dockerRepoArgName :: Text
- dockerImageArgName :: Text
- dockerRegistryLoginArgName :: Text
- dockerRegistryUsernameArgName :: Text
- dockerRegistryPasswordArgName :: Text
- dockerAutoPullArgName :: Text
- dockerDetachArgName :: Text
- dockerRunArgsArgName :: Text
- dockerMountArgName :: Text
- dockerEnvArgName :: Text
- dockerContainerNameArgName :: Text
- dockerPersistArgName :: Text
- dockerDatabasePathArgName :: Text
- dockerStackExeArgName :: Text
- dockerStackExeDownloadVal :: String
- dockerStackExeHostVal :: String
- dockerStackExeImageVal :: String
- dockerSetUserArgName :: Text
- dockerRequireDockerVersionArgName :: Text
- dockerEntrypointArgName :: String
- dockerCmdName :: String
- dockerHelpOptName :: String
- dockerPullCmdName :: String
- dockerCleanupCmdName :: String
- reExecArgName :: String
- dockerContainerPlatform :: Platform
Documentation
data DockerOpts Source #
Docker configuration.
DockerOpts | |
|
data DockerOptsMonoid Source #
An uninterpreted representation of docker options. Configurations may be "cascaded" using mappend (left-biased).
DockerOptsMonoid | |
|
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 # | |
data DockerStackExe Source #
Where to get the stack
executable to run in Docker containers
DockerStackExeDownload | Download from official bindist |
DockerStackExeHost | Host's |
DockerStackExeImage | Docker image's |
DockerStackExePath (Path Abs File) | Executable at given path |
parseDockerStackExe :: MonadThrow m => String -> m DockerStackExe Source #
Parse DockerStackExe
.
Docker volume mount.
data DockerMonoidRepoOrImage Source #
Options for Docker repository or image.
newtype VersionRangeJSON Source #
Newtype for non-orphan FromJSON instance.
FromJSON VersionRangeJSON Source # | Parse VersionRange. |
data StackDockerException Source #
Exceptions thrown by Stack.Docker.
DockerMustBeEnabledException | Docker must be enabled to use the command. |
OnlyOnHostException | Command must be run on host OS (not in a container). |
InspectFailedException String |
|
NotPulledException String | Image does not exist. |
InvalidCleanupCommandException String | Input to |
InvalidImagesOutputException String | Invalid output from |
InvalidPSOutputException String | Invalid output from |
InvalidInspectOutputException String | Invalid output from |
PullFailedException String | Could not pull a Docker image. |
DockerTooOldException Version Version | Installed version of |
DockerVersionProhibitedException [Version] Version | Installed version of |
BadDockerVersionException VersionRange Version | Installed version of |
InvalidVersionOutputException | Invalid output from |
HostStackTooOldException Version (Maybe Version) | Version of |
ContainerStackTooOldException Version Version | Version of |
CannotDetermineProjectRootException | Can't determine the project root (where to put docker sandbox). |
DockerNotInstalledException |
|
UnsupportedStackExeHostPlatformException | Using host stack-exe on unsupported platform. |
DockerStackExeParseException String |
|
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