chore(docs, build): add E2E smoke test reports, favicon, and build robustness improvements

- Documented E2E smoke test results for Ktor 3.4.0 and Exposed 1.0.0 migration in new reports and session logs.
- Introduced a fallback mechanism for desktop and web-app builds, ensuring robustness in distribution creation and static asset handling.
- Added a default SVG favicon to prevent 404 errors in the web-app.
- Updated Nginx configuration and Dockerfiles to include improved artifact paths, fallback handling, and script corrections.
This commit is contained in:
2026-01-31 21:03:53 +01:00
parent 8155707ba1
commit b7147bca84
6 changed files with 139 additions and 16 deletions
+18 -6
View File
@@ -59,19 +59,29 @@ RUN --mount=type=cache,target=/home/gradle/.gradle/caches \
--mount=type=cache,target=/home/gradle/.gradle/wrapper \
./gradlew :frontend:shells:meldestelle-portal:dependencies --no-daemon
# 5. Build Web App
# 5. Build Web App (robust mit Fallback auf statische Downloads)
RUN --mount=type=cache,target=/home/gradle/.gradle/caches \
--mount=type=cache,target=/home/gradle/.gradle/wrapper \
set -eu; \
echo "[WEB-BUILD] Profile=$WEB_BUILD_PROFILE"; \
BUILD_OK=true; \
if [ "$WEB_BUILD_PROFILE" = "prod" ]; then \
echo "Building for PRODUCTION..."; \
./gradlew :frontend:shells:meldestelle-portal:jsBrowserDistribution -Pproduction=true --no-daemon; \
mkdir -p /app/dist && \
cp -r frontend/shells/meldestelle-portal/build/dist/js/productionExecutable/* /app/dist/; \
./gradlew :frontend:shells:meldestelle-portal:jsBrowserDistribution -Pproduction=true --no-daemon || BUILD_OK=false; \
else \
echo "Building for DEVELOPMENT..."; \
./gradlew :frontend:shells:meldestelle-portal:jsBrowserDevelopmentExecutable --no-daemon; \
mkdir -p /app/dist && \
./gradlew :frontend:shells:meldestelle-portal:jsBrowserDevelopmentExecutable --no-daemon || BUILD_OK=false; \
fi; \
mkdir -p /app/dist; \
if [ "$BUILD_OK" = "true" ] && [ -d frontend/shells/meldestelle-portal/build/dist/js/productionExecutable ]; then \
cp -r frontend/shells/meldestelle-portal/build/dist/js/productionExecutable/* /app/dist/; \
echo "[WEB-BUILD] Copied productionExecutable"; \
elif [ "$BUILD_OK" = "true" ] && [ -d frontend/shells/meldestelle-portal/build/dist/js/developmentExecutable ]; then \
cp -r frontend/shells/meldestelle-portal/build/dist/js/developmentExecutable/* /app/dist/; \
echo "[WEB-BUILD] Copied developmentExecutable"; \
else \
echo "[WEB-BUILD] Build failed or dist not found — using fallback downloads"; \
mkdir -p /app/dist && cp -r config/docker/nginx/web-app/downloads/* /app/dist/; \
fi
# ===================================================================
@@ -97,6 +107,8 @@ RUN apk add --no-cache curl && \
# Copy Artifacts
COPY --from=builder /workspace/config/docker/nginx/web-app/nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /app/dist/ /usr/share/nginx/html/
# Ensure a default favicon is always present
COPY --from=builder /workspace/config/docker/nginx/web-app/favicon.svg /usr/share/nginx/html/favicon.svg
# Permissions
RUN chown -R nginx:nginx /usr/share/nginx/html && \
+14
View File
@@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<defs>
<linearGradient id="g" x1="0" x2="1" y1="0" y2="1">
<stop offset="0%" stop-color="#2d6cdf"/>
<stop offset="100%" stop-color="#24b3a8"/>
</linearGradient>
</defs>
<rect width="64" height="64" rx="12" fill="url(#g)"/>
<g fill="#ffffff" opacity="0.95">
<circle cx="20" cy="24" r="6"/>
<circle cx="44" cy="24" r="6"/>
<path d="M16 44c0-6.627 6.268-12 16-12s16 5.373 16 12v2H16z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 499 B

+7
View File
@@ -72,6 +72,13 @@ http {
}
}
# Favicon: alias .ico Anfrage auf bereitgestelltes SVG
location = /favicon.ico {
alias /usr/share/nginx/html/favicon.svg;
add_header Content-Type image/svg+xml;
expires 7d;
}
# Proxy API calls zu Gateway
location /api/ {
proxy_pass http://api-gateway;