Skip to content

ClusterLabs/pcs-web-ui

Repository files navigation

PCS WEB UI

Web interface for pcs - a Corosync and Pacemaker configuration tool.

Prerequisites

Preparation

  • git clone <repository-url> this repository
  • change into the new directory
  • make init

Development

Running dev environment

  • make app
  • make dev
    • dev backend doesn't run fully featured backend mock
    • it runs only scenario with limited features
  • Open http://localhost:3000 to view it in the browser

Running tests

  • make tests

Building and installation

  • make build
    • you can use BUILD_USE_CURRENT_NODE_MODULES=true make build if correct node modules already exists
  • production build is created inside build directory
  • content of build directory copy to pcsd/public/ui/ directory

Building and installation for cockpit

  • BUILD_FOR_COCKPIT=true make build
  • production build is created inside build directory
  • content of build directory copy (or symlink) to the path where cockpit will find it, e.g.
    • mkdir -p ~/.local/share/cockpit
    • ln -snf "$PWD"/build ~/.local/share/cockpit/ha-cluster