Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 6 additions & 24 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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=
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Loading