Skip to content

sinch/gradle-docker-helper

Repository files navigation

Gradle Docker helper

A helper plugin that makes it easier to set up Docker tasks e.g. for local MySQL DB access.

Configuration

open class DockerHelperPluginExtension {
    var taskGroup: String = "docker"
    var taskPrefix: String = "docker"

    val registryAuthority: String? = null // if null, the other registry settings are ignored
    val registryUsername: String? = null
    val registryPassword: String? = null

    var imageName: String? = null 
    var imagePath: String? = null 
    var tag: String = "latest"
    
    var envVars: Map<String, String> = mapOf()

    var portBindings: List<String> = listOf()
}

// usage via e.g.:

dockerhelper {
    taskGroup = "infra"
    taskPrefix = "mysql"
    
    // etc. etc.
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages