script

Kommons process execution: Kotlin and Docker

Kommons: Execute Commands, Scripts & Containers the Kotlin Way

The process APIs introduced in version 1.5 of the library now known as Kommons let you run command lines and shell scripts, either on your host or in a Docker container, synchronously or asynchronously, with optional logging and process interaction—all with zero boilerplate.

Update: These examples document the original 1.5 release, published as Koodies, and retain its package names and Maven coordinates. The Docker helpers shown below are no longer part of the current API. See the current Kommons documentation and Maven Central for current releases.

Continue reading…