In this repo there's a docker-compose file with gradle image. To run container, run in your terminal:
docker-compose run gradle
In this container you can run and test your code. The recommended flow it to
edit app/src/main/groovy/groovylab/App.groovy
file and then run
gradle run
in the container.
Example of app/src/main/groovy/groovylab/App.groovy
:
package groovylab
class App {
static void main(String[] args) {
println "hello world"
}
}