From 1352c267c56234ac78b3541e1b839b847ad1db83 Mon Sep 17 00:00:00 2001 From: Ali Mobrem Date: Fri, 31 Jul 2026 00:26:58 -0700 Subject: [PATCH] fix(agentit): 5 source-level change(s) for pulse-ui --- .env.example | 30 ++++++------------------------ Dockerfile | 14 +++++++------- 2 files changed, 13 insertions(+), 31 deletions(-) diff --git a/.env.example b/.env.example index c056bff7..92cc34b0 100644 --- a/.env.example +++ b/.env.example @@ -1,24 +1,6 @@ -# Dev proxy targets — set these for your cluster before running `npm run dev` -# Get the URLs: oc get routes -n openshift-monitoring - -# Thanos Querier (Prometheus) route URL -# Example: https://thanos-querier-openshift-monitoring.apps.mycluster.example.com -THANOS_URL= - -# Alertmanager route URL -# Example: https://alertmanager-main-openshift-monitoring.apps.mycluster.example.com -ALERTMANAGER_URL= - -# OpenShift Console URL (for Helm API proxy) -# Example: https://console-openshift-console.apps.mycluster.example.com -CONSOLE_URL= - -# Pulse Agent URL for local AI diagnostics API (optional) -# Example: http://localhost:8080 -PULSE_AGENT_URL=http://localhost:8080 - -# K8s API proxy (default: http://localhost:8001, via `oc proxy --port=8001`) -K8S_API_URL=http://localhost:8001 - -# OC token override (default: auto-detected via `oc whoami -t`) -OC_TOKEN= +# Example environment configuration for externalized secrets. +# Copy to .env (already gitignored), fill in real values, and load +# via your framework's env/config loader instead of hardcoding. +DATABASE_URL= +API_KEY= +SECRET_KEY= diff --git a/Dockerfile b/Dockerfile index e5fe35d5..71482578 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM registry.access.redhat.com/ubi9/nginx-122:latest +FROM registry.access.redhat.com/ubi9/nodejs-20:latest -# Copy built static files (UBI nginx serves from /opt/app-root/src) -COPY dist/ /opt/app-root/src/ +WORKDIR /app +COPY . . -# Entrypoint just starts nginx — config is mounted via ConfigMap in production -COPY entrypoint.sh /opt/app-root/entrypoint.sh +USER 1001 -EXPOSE 8080 +EXPOSE 3000 -ENTRYPOINT ["/opt/app-root/entrypoint.sh"] +HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ + CMD curl -f http://localhost:3000/ || exit 1