Skip to content

Commit

Permalink
Add a future to keep docker running without interactive shell
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajkapica committed Jun 25, 2024
1 parent 78dcdc8 commit d7ee892
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/src/main/scala/server/Server.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ import akka.http.scaladsl.Http
import settings.Settings
import system.Simulation

import scala.concurrent.Await
import scala.concurrent.ExecutionContextExecutor
import scala.concurrent.Promise
import scala.concurrent.duration.FiniteDuration
import scala.concurrent.duration.Duration

object Server {

Expand Down Expand Up @@ -39,4 +42,7 @@ object Server {
}
}

val keepAlive = Promise[Unit].future
Await.result(keepAlive, Duration.Inf)

}

0 comments on commit d7ee892

Please sign in to comment.