Difficulty: beginner
Estimated Time: 10-15 minutes

In this scenario, you'll learn how to deploy a Kotlin based HTTP server built using Wasabi as a Docker Container.

The environment is connected to a sandboxed Docker instance, and the code for a sample Wasabi application is in the working directory. To view the code use ls and cat <filename>

The machine name Docker is running on is called docker. If you want to access any of the services, then use docker instead of localhost or 0.0.0.0.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Deploying Kotlin and Wasabi HTTP Server as a Docker Container

Step 1 of 6

Step 1 - Example Application

The example application is a Wasabi API based on Kotlin.

The application is configured to listen on port 3000. It has a single endpoint that returns the hostname of the container. You can see the endpoint code in src/main/kotlin/server.kt

The code is downloaded from https://github.com/katacoda/java-kotlin-http-example

Dockerfile