aem-plugin / com.cognifide.gradle.aem.environment.docker / Docker

Docker

class Docker

Constructors

<init>

Docker(environment: Environment)

Properties

aem

val aem: AemExtension

composeFile

val composeFile: File

composeTemplateFile

val composeTemplateFile: File

configPath

val configPath: String

containers

Provides API for manipulating Docker containers defined in 'docker-compose.yml'.

val containers: ContainerManager

environment

val environment: Environment

rootPath

val rootPath: String

running

val running: Boolean

runtime

val runtime: Runtime

stack

Represents Docker stack named 'aem' and provides API for manipulating it.

val stack: Stack

up

val up: Boolean

Functions

containers

Configure additional behavior for Docker containers defined in 'docker-compose.yml'.

fun containers(options: ContainerManager.() -> Unit): Unit

down

fun down(): Unit

init

fun init(): Unit

reload

fun reload(): Unit

run

fun run(image: String, command: String, exitCode: Int = 0): DockerResult
fun run(operation: String, image: String, command: String, exitCode: Int = 0): DockerResult
fun run(options: RunSpec.() -> Unit): DockerResult

runShell

fun runShell(image: String, command: String, exitCode: Int = 0): DockerResult
fun runShell(operation: String, image: String, command: String, exitCode: Int = 0): DockerResult

up

fun up(): Unit