Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
dashkt committed Nov 9, 2023
1 parent 12ae24f commit 175bdb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ object DockerContainerController {
DeploymentService.dockerClient.killContainerCmd(containerId).exec()
}

fun stopContainer(containerId: String) {
DeploymentService.dockerClient.stopContainerCmd(containerId).exec()
}

fun removeContainer(containerId: String) {
DeploymentService.dockerClient.removeContainerCmd(containerId).exec()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ class WrappedDockerContainer(
val container: CreateContainerResponse,
val allocation: Allocation,
var heartbeat: WrappedContainerHeartbeat? = null
)
) {
//todo @98Ping makee esomeething heere wheere you can access the logs of the server and make sure it is addeed to the @DeploymentRouter
fun stop() = DockerContainerController.stopContainer(container.id)
fun kill() = DockerContainerController.killContainer(container.id)
}

0 comments on commit 175bdb6

Please sign in to comment.