fixing Web-App Dockerfile
This commit is contained in:
@@ -161,7 +161,8 @@ docker-compose logs [service-name]
|
|||||||
|
|
||||||
Die Client-Anwendungen sind als ein gemeinsames Kotlin Multiplatform (KMP) Modul `:client` organisiert und liefern:
|
Die Client-Anwendungen sind als ein gemeinsames Kotlin Multiplatform (KMP) Modul `:client` organisiert und liefern:
|
||||||
- Desktop (JVM) über Compose Desktop
|
- Desktop (JVM) über Compose Desktop
|
||||||
- Web (WASM im Browser) über Compose HTML/WASM
|
- Web (Kotlin/JS im Browser) über Compose Multiplatform
|
||||||
|
- Optional: WASM mit Flag -PenableWasm=true
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Desktop (JVM) starten
|
# Desktop (JVM) starten
|
||||||
|
|||||||
+5
-6
@@ -1,16 +1,15 @@
|
|||||||
package at.mocode.clients.pingfeature
|
package at.mocode.clients.pingfeature
|
||||||
|
|
||||||
import at.mocode.ping.api.PingResponse
|
|
||||||
import at.mocode.ping.api.EnhancedPingResponse
|
import at.mocode.ping.api.EnhancedPingResponse
|
||||||
import at.mocode.ping.api.HealthResponse
|
import at.mocode.ping.api.HealthResponse
|
||||||
|
import at.mocode.ping.api.PingResponse
|
||||||
import io.ktor.client.engine.mock.*
|
import io.ktor.client.engine.mock.*
|
||||||
import io.ktor.client.plugins.contentnegotiation.*
|
|
||||||
import io.ktor.http.*
|
import io.ktor.http.*
|
||||||
import io.ktor.serialization.kotlinx.json.*
|
import kotlinx.coroutines.test.runTest
|
||||||
import io.ktor.utils.io.*
|
|
||||||
import kotlinx.coroutines.test.*
|
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
import kotlin.test.*
|
import kotlin.test.Test
|
||||||
|
import kotlin.test.assertEquals
|
||||||
|
|
||||||
class PingApiClientTest {
|
class PingApiClientTest {
|
||||||
|
|
||||||
private fun createMockApiClient(mockEngine: MockEngine): PingApiClient {
|
private fun createMockApiClient(mockEngine: MockEngine): PingApiClient {
|
||||||
|
|||||||
@@ -48,13 +48,6 @@ services:
|
|||||||
- "${PING_SERVICE_PORT:-8082}:8082"
|
- "${PING_SERVICE_PORT:-8082}:8082"
|
||||||
networks:
|
networks:
|
||||||
- meldestelle-network
|
- meldestelle-network
|
||||||
# depends_on:
|
|
||||||
# postgres:
|
|
||||||
# condition: service_healthy
|
|
||||||
# redis:
|
|
||||||
# condition: service_healthy
|
|
||||||
# consul:
|
|
||||||
# condition: service_healthy
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "curl", "--fail", "http://localhost:8082/actuator/health/readiness" ]
|
test: [ "CMD", "curl", "--fail", "http://localhost:8082/actuator/health/readiness" ]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
|
|||||||
Reference in New Issue
Block a user