Sign inSign up

stepin/kotlin-scripting

By stepin

•Updated over 1 year ago

Docker image for Kotlin scripting

Image
Developer tools
0

1.6K

stepin/kotlin-scripting repository overview

⁠Kotlin Scripting

This repo simplifies work with Kotlin scripts.

Docker image also have bash, unzip, and jq for scripts.

⁠Dockerfile use case

FROM stepin/kotlin-scripting

COPY json.main.kts ./

# Cache dependencies and compilation result for better start-up speed
RUN /app/json.main.kts

ENTRYPOINT ["/app/json.main.kts"]

⁠Non-Dockerfile examples

# run inline script
docker run --rm -i stepin/kotlin-scripting -e 'println("Hello, world!")'

# run script from file
# NOTE: interactive scripts will not work in this case
docker run --rm -i stepin/kotlin-scripting - < simple.main.kts

# run script from file for interactive case
docker run --rm -it \
  -v "$(PWD):/data" \
  -w /data \
  stepin/kotlin-scripting \
  simple.main.kts

# interactive shell
docker run --rm -i stepin/kotlin-scripting

⁠More info

Blog post about this image: https://stepin.name/en/technoblog/110-kotlin-scripting/⁠

Tag summary

Content type

Image

Digest

sha256:2e14f51ca…

Size

188.7 MB

Last updated

over 1 year ago

docker pull stepin/kotlin-scripting