Hi all, I'm looking to run my Ktor development en...
# ktor
t
Hi all, I'm looking to run my Ktor development environment inside a Docker container. Ideally, I wouldn't necessarily be packaging the app for deployment whenever I make a code change. Instead, I imagine the source code existing on the host machine, and then the classes/files required to run the development environment will be volume mounted into the Docker container. The trouble I have is I don't actually understand what the IDE does when you 'run' a Ktor project in the IDE. What commands are invoked? Is it possible to replicate this process manually, within the Docker container? This is less a question about Docker and more about compiling/running a Ktor application from a shell.
Ah, it looks like this isn't as complicated as I imagined. Looks like I need to execute
java com.myapp.ApplicationKt
with the
classpath
flag defining the locations of the source & jar dependencies. I think I'll figure this out!
h
Correct. When you run, it even outputs the command line.
t
Yeah, that's how I worked it out haha
I've been developing Android apps for almost a decade and I have no idea how to run java commands
😁 1
😎 1