Skip to content

Commit

Permalink
with image name
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrise2 committed Nov 13, 2023
1 parent 3044832 commit ce67c9f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
19 changes: 2 additions & 17 deletions ij-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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"
}
}
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -11,5 +12,8 @@ fun Application.configureRouting() {
createUser()
createResearch()
uploadLogFile()
get("/healthz") {
call.respondText("OK")
}
}
}
8 changes: 8 additions & 0 deletions skaffold.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: skaffold/v4beta8
kind: Config
build:
artifacts:
- image: ij-server-image
context: .
jib:
project: :ij-server

0 comments on commit ce67c9f

Please sign in to comment.