Safe Haskell | None |
---|---|
Language | Haskell2010 |
Run commands in Docker containers
- cleanup :: M env m => CleanupOpts -> m ()
- data CleanupOpts = CleanupOpts {
- dcAction :: !CleanupAction
- dcRemoveKnownImagesLastUsedDaysAgo :: !(Maybe Integer)
- dcRemoveUnknownImagesCreatedDaysAgo :: !(Maybe Integer)
- dcRemoveDanglingImagesCreatedDaysAgo :: !(Maybe Integer)
- dcRemoveStoppedContainersCreatedDaysAgo :: !(Maybe Integer)
- dcRemoveRunningContainersCreatedDaysAgo :: !(Maybe Integer)
- data CleanupAction
- dockerCleanupCmdName :: String
- dockerCmdName :: String
- dockerOptsParser :: Bool -> Parser DockerOptsMonoid
- dockerOptsFromMonoid :: Maybe Project -> Path Abs Dir -> DockerOptsMonoid -> DockerOpts
- dockerPullCmdName :: String
- preventInContainer :: (MonadIO m, MonadThrow m) => m () -> m ()
- pull :: M env m => m ()
- rerunCmdWithOptionalContainer :: M env m => Maybe (Path Abs Dir) -> IO (FilePath, [String], Config -> Config) -> IO () -> m ()
- rerunCmdWithRequiredContainer :: M env m => Maybe (Path Abs Dir) -> IO (FilePath, [String], Config -> Config) -> m ()
- rerunWithOptionalContainer :: M env m => Maybe (Path Abs Dir) -> IO () -> m ()
- reset :: MonadIO m => Maybe (Path Abs Dir) -> Bool -> m ()
Documentation
cleanup :: M env m => CleanupOpts -> m () Source
Clean-up old docker images and containers.
data CleanupOpts Source
Options for cleanup
.
data CleanupAction Source
Cleanup action.
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.
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.