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"

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

    var imageName: String? = null
    var imagePath: String? = null
    var tag: String = "latest"

    var waitSeconds: Int = DEFAULT_WAIT_SECONDS // 60

    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