https://github.com/escoto/kotlinspringsample
Example on running a Kotlin + Spring API on Docker.
https://github.com/escoto/kotlinspringsample
docker kotlin maven spring webapi
Last synced: 2 months ago
JSON representation
Example on running a Kotlin + Spring API on Docker.
- Host: GitHub
- URL: https://github.com/escoto/kotlinspringsample
- Owner: Escoto
- Created: 2021-08-23T19:52:54.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-18T15:51:04.000Z (over 4 years ago)
- Last Synced: 2024-04-18T02:58:16.574Z (about 2 years ago)
- Topics: docker, kotlin, maven, spring, webapi
- Language: HCL
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kotlin + Spring + Docker
This is an example on how to build a simple Web API with Kotlin and run it on docker.
Take a look at my [medium post](https://medium.com/codex/containerizing-your-application-b1644385e2ef "Containerizing Your First Application"), where I explain in detail how this repository works.
## In short
### You need:
1. Docker
2. Kotlin
3. Maven
### To run:
In a console pointing to the root directory of this project.
```
$> mvn compile
$> mvn package
$> docker build -t kotlinapihello .
$> docker run -d -p 8080:8080 --name workinginstance kotlinapihello
```
-----------------
For the proper documentation on how all this is tied together please take a look at my [medium post](https://medium.com/codex/containerizing-your-application-b1644385e2ef "Containerizing Your First Application").