Are Jetbrains maintaining any Docker images?
I'm looking for some easy and trusted way of getting access to
kotlinc
inside a Docker Image.
c
CLOVIS
09/22/2021, 9:44 AM
The recommended way is to let Gradle or Maven download it for you, if your project is managed by one of these.
j
jeggy
09/22/2021, 9:53 AM
So I would guess there is no easy way of just running a .kts script inside a Docker image without mixing gradle into the mix?
Then I think I will just create my own Docker image based of Ubuntu and use snap to install kotlinc 😛
ah, seems like snap isn't even included in any docker images 😮
c
CLOVIS
09/22/2021, 10:02 AM
If you just want a simple Kotlin script, the easiest method is probably through SDKMAN
Which is available in a docker image 😅 though you can't control the Kotlin version, and I don't update it often.
It's fine for me because the scripts I run are simple automation things, so having a specific version isn't critical. If you do need something specific, that's probably a good starting off place