chentex / ocp-perf-dashboard

OpenShift container platform performance dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenShift Performance Dashboard

Elasticsearch configuration

Requires

  • current working directory is backend/

Create a configuration file, named ocpperf with the following key structure, and fill in the values:

[elasticsearch]
url=
indice=
username=
password=

[ocp-server]
port=8000

[airflow]
url=
username=
password=

TOML is used above, but it also accepts YAML.

Development on System

  1. Follow backend setup readme
  2. Follow frontend setup readme

Development in Containers

Requires

  • podman

Build Backend

Requires

  • current working directory is backend/

Build backend image.

$ podman build \
  --tag ocpp-back \
  --file backend.containerfile \
  .

Run Backend

Run the backend container and attach source code as a writable volume.

$ podman run \
    --interactive \
    --tty \
    --volume "$PWD/app:/backend/app:z" \
    --volume "$PWD/ocpperf.toml:/backend/ocpperf.toml"
    --publish 8000:8000 \
    ocpp-back /backend/scripts/start-reload.sh

Build Frontend

Requires

  • current working directory is frontend/

Build frontend image.

$ podman build \
    --tag ocpp-front \
    --file frontend-dev.containerfile \
    .

Run Frontend

Requires

  • second terminal
  • current working directory is frontend/

Run frontend container and attach source code as a writable volume.

$ podman run \
    --interactive \
    --tty \
    --volume "$PWD:/app:z" \
    --publish 3000:3000 \
    ocpp-front

About

OpenShift container platform performance dashboard

License:Apache License 2.0


Languages

Language:JavaScript 50.2%Language:CSS 24.4%Language:Python 21.2%Language:HTML 2.7%Language:Shell 1.5%