We'd love to see if you manage to get it running -...
# http4k
d
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
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
nice! just out of interest. are those mods to do with the core lib or the netty module?
r
The Netty module for the changes I think reasonable for http4k to make
d
@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
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
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
Managed to get one very similar to kotlin.html working in the end