Transmode / gradle-docker

A Gradle plugin to build Docker images from the build script.
Apache License 2.0
647 stars 142 forks source link

Method missing method does not work well in gradle script kotlin builds #109

Open JLLeitschuh opened 7 years ago

JLLeitschuh commented 7 years ago

Your Dockerfile class doesn't lend itself well for usage in gradle script kotlin builds.

https://github.com/Transmode/gradle-docker/blob/master/src/main/groovy/se/transmode/gradle/plugins/docker/image/Dockerfile.groovy#L70

Providing more strongly typed methods for the default commands would be useful.

bjornmagnusson commented 7 years ago

Thanks for the input. We do not use Kotlin yet in-house. Do you have an example buildscript to provide?

JLLeitschuh commented 7 years ago

I ended up not moving forward using this this plugin and instead ended up using the bmuschko/gradle-docker-plugin plugin.

The primary problems that I had with this plugin is that DockerFile is missing methods for several of the keywords that Docker supports now.