diff --git a/ij-server/build.gradle.kts b/ij-server/build.gradle.kts index 3996c8c2..c4c27ef4 100644 --- a/ij-server/build.gradle.kts +++ b/ij-server/build.gradle.kts @@ -4,7 +4,6 @@ version = rootProject.version @Suppress("DSL_SCOPE_VIOLATION") plugins { id(libs.plugins.ktor.get().pluginId) version libs.versions.ktor.get() - id("com.google.cloud.tools.jib") version "3.3.1" } application { @@ -29,21 +28,7 @@ dependencies { } jib { - container { - ports = listOf("8080") - mainClass = "org.jetbrains.research.tasktracker.ApplicationKt" - - jvmFlags = listOf( - "-server", - "-Djava.awt.headless=true", - "-XX:+UnlockExperimentalVMOptions", - "-XX:+UseCGroupMemoryLimitForHeap", - "-XX:InitialRAMFraction=2", - "-XX:MinRAMFraction=2", - "-XX:MaxRAMFraction=2", - "-XX:+UseG1GC", - "-XX:MaxGCPauseMillis=100", - "-XX:+UseStringDeduplication" - ) + to { + image = "new1" } } diff --git a/ij-server/src/main/kotlin/org/jetbrains/research/tasktracker/plugins/Routing.kt b/ij-server/src/main/kotlin/org/jetbrains/research/tasktracker/plugins/Routing.kt index 872ef33a..4fa375e7 100644 --- a/ij-server/src/main/kotlin/org/jetbrains/research/tasktracker/plugins/Routing.kt +++ b/ij-server/src/main/kotlin/org/jetbrains/research/tasktracker/plugins/Routing.kt @@ -1,6 +1,7 @@ package org.jetbrains.research.tasktracker.plugins import io.ktor.server.application.* +import io.ktor.server.response.* import io.ktor.server.routing.* import org.jetbrains.research.tasktracker.plugins.requests.createResearch import org.jetbrains.research.tasktracker.plugins.requests.createUser @@ -11,5 +12,8 @@ fun Application.configureRouting() { createUser() createResearch() uploadLogFile() + get("/healthz") { + call.respondText("OK") + } } } diff --git a/skaffold.yaml b/skaffold.yaml new file mode 100644 index 00000000..57092cb7 --- /dev/null +++ b/skaffold.yaml @@ -0,0 +1,8 @@ +apiVersion: skaffold/v4beta8 +kind: Config +build: + artifacts: + - image: ij-server-image + context: . + jib: + project: :ij-server