https://kotlinlang.org logo
#http4k
Title
# http4k
d

dave

06/20/2018, 9:16 AM
We'd love to see if you manage to get it running - although beware that the netty implementation is the least mature of all the server backends. I've not used it in a prod environment myself - I generally default to Undertow,
r

RichyHBM

06/20/2018, 10:57 AM
That was easier than expected, have a 16mb docker based on alpine with a kotlin webapp using Netty 😀
Definitely more steps than I feel http4k should incorporate though here are some small changes that would make it easier, I'll make a PR for those at some point and maybe do a write up on how to accomplish the full thing
d

dave

06/20/2018, 10:59 AM
nice! just out of interest. are those mods to do with the core lib or the netty module?
r

RichyHBM

06/20/2018, 11:48 AM
The Netty module for the changes I think reasonable for http4k to make
d

dave

06/20/2018, 3:36 PM
@RichyHBM also of interest, you might want to cross post to #server as they've also done this with spring boot. What was the size of the JAR (excluding the Docker image)?
r

RichyHBM

06/20/2018, 4:35 PM
Trying to get templating working with various levels of success... Do you mean the native executable? Around 11mb, the jar would have been the same size
d

dave

06/20/2018, 4:37 PM
A lot of the templating engines will use reflection for the data binding, so I'm not surprised you're having trouble ! 🙃 Might be worth checking out that spring example to what they have used
Apparently jetty also works..
r

RichyHBM

06/20/2018, 5:59 PM
Managed to get one very similar to kotlin.html working in the end