stack-0.1.0.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Docker

Description

Run commands in Docker containers

Synopsis

Documentation

cleanup :: M env m => CleanupOpts -> m () Source

Clean-up old docker images and containers.

dockerCleanupCmdName :: String Source

Command-line argument for docker cleanup.

dockerCmdName :: String Source

Command-line argument for "docker"

dockerOptsParser :: Bool -> Parser DockerOptsMonoid Source

Options parser configuration for Docker.

dockerOptsFromMonoid :: Maybe Project -> Path Abs Dir -> DockerOptsMonoid -> DockerOpts Source

Interprets DockerOptsMonoid options.

dockerPullCmdName :: String Source

Command-line argument for docker pull.

preventInContainer :: (MonadIO m, MonadThrow m) => m () -> m () Source

Error if running in a container.

pull :: M env m => m () Source

Pull latest version of configured Docker image from registry.

rerunCmdWithOptionalContainer :: M env m => Maybe (Path Abs Dir) -> IO (FilePath, [String], Config -> Config) -> IO () -> m () Source

If Docker is enabled, re-runs the OS command returned by the second argument in a Docker container. Otherwise, runs the inner action.

rerunCmdWithRequiredContainer :: M env m => Maybe (Path Abs Dir) -> IO (FilePath, [String], Config -> Config) -> m () Source

If Docker is enabled, re-runs the OS command returned by the second argument in a Docker container. Otherwise, runs the inner action.

rerunWithOptionalContainer :: M env m => Maybe (Path Abs Dir) -> IO () -> m () Source

If Docker is enabled, re-runs the currently running OS command in a Docker container. Otherwise, runs the inner action.

reset :: MonadIO m => Maybe (Path Abs Dir) -> Bool -> m () Source

Remove the project's Docker sandbox.