/docker-example

Getting started with Docker using Kotlin

Primary LanguageKotlin

docker-example

Minimal docker app with fat kotlin jar (includes stdlib)

Requirements

Docker should be installed, getting started guide is here

Running

./gradlew dockerRun to run container

./gradlew logContainer to run and log application output

Implementation description

Fat jar is assembled for kotlin-stdlib to be added to classpath.

Entry point is MainKt.class, as described in a generated manifest.

gradle-docker-plugin is used for every docker-related action, Dockerfile is also generated by named plugin.