DigitalHub dashboard for component access. Static UI based on Vue SPA served with Nginx.
File public/components.json
defines the list of DH components that can be accessed with UI or port forwarding. Each component is defined with
slug
unique component ID managed by K8Sname
user-friendly component namedescription
description of the componentport
defines TCP/HTTP port to perform port forwarding with SSH (optional).link
defines the Web connection within coder domain management (optional).
File public/monitoring.json
defines the list of Monitoring pages that can be accessed with UI or port forwarding. Each page is defined with
slug
unique dashboard IDname
user-friendly dashboard namedescription
description of the dashboardlink
defines the link to the dasboard.
It is possible to enable OIDC authentication for the dashboard component. Specifically, it is necessary to define the OIDC configuration (JSON) as of
OIDC Client as environment variable VITE_OIDC_CONFIG
.
It is possible to define the environment variables at the build time (.env
file notations) or at deployment time overwriting the file
/public/env.js
. The supported variables are
VITE_OIDC_CONFIG
- OIDC configurationVITE_PLATFORM_TITLE
- name of the platformVITE_PLATFORM_VERSION
- version of the platform
To build Vue application, use the following steps (Node required):
npm i
to install the dependenciesnpm run build
to build static resources
To build docker image, use the following steps:
docker build -t <tag> .
docker run -d --name <container-name> -p 80:80 <tag>