From 9f2890b042d0ad7dad966c199260bf568ae4e038 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Fri, 24 Mar 2023 13:09:43 +0900 Subject: [PATCH] chore: docker image name --- build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 5e5e56ca..f8d21559 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -50,3 +50,17 @@ dependencies { testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version") testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") } + +jib { + if (System.getProperty("os.name").toLowerCase().contains("windows")) { + dockerClient.environment = mapOf( + "DOCKER_HOST" to "localhost:2375" + ) + } +} + +ktor { + docker { + localImageName.set("hideout") + } +}