environment-plugin / com.cognifide.gradle.environment.docker / RunSpec

RunSpec

open class RunSpec : DockerDefaultSpec

Constructors

<init>

RunSpec(environment: EnvironmentExtension)

Properties

cleanup

var cleanup: Boolean

detached

var detached: Boolean

image

var image: String

indicator

var indicator: Boolean

name

var name: String?

operation

val operation: String

ports

var ports: Map<String, String>

volumes

var volumes: Map<String, String>

Functions

operation

fun operation(textProvider: () -> String): Unit
fun operation(text: String): Unit

port

fun port(hostPort: Int, containerPort: Int): Unit
fun port(hostPort: String, containerPort: String): Unit
fun port(port: Int): Unit

volume

fun volume(localFile: File, containerPath: String): Unit
fun volume(localPath: String, containerPath: String): Unit

Inheritors

DaemonSpec

class DaemonSpec : RunSpec