io.bkbn.skelegro.docker.commands.Run.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skelegro-docker Show documentation
Show all versions of skelegro-docker Show documentation
A wacky assortment of Kotlin DSLs for infrastructure manifest generation
package io.bkbn.skelegro.docker.commands
import io.bkbn.skelegro.docker.Dockerfile
typealias RunCommands = List
class Run(
var commands: RunCommands = emptyList(),
var separator: String = " ",
comment: String? = null
) : Command(comment) {
override fun tag() = "RUN"
override fun toString() = "${tag()} ${commands.joinToString(separator = separator)}"
}
fun Dockerfile.RUN(init: Run.() -> Unit): Run {
val run = Run().apply(init)
steps.add(run)
return run
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy