Skip to content

Files

Latest commit

 

History

History

ui

Metalk8s UI

Prerequisites

node v14+ npm v6 docker (optional, but recommended)

Install dependencies

$ npm install

In webpack.dev.js edit the value of controlPlaneIP and provide your cluster bootstrap node's control plane IP. You can get it by running:

# salt-call grains.get metalk8s:control_plane_ip

Then run the UI with :

$ npm run start

This will first start <root>/shell-ui in Docker container and expose it on port 8084 and then will start the Metalk8s UI in dev mode. If you don't have Docker installed on your machine you can alternatively install <root>/shell-ui dependencies via running npm install in that folder and then run npm run build. Then serve statically the content of the <root>/shell-ui/build folder on the port 8084. You can pick whichever other port you want but would then have to change this port in webpack.dev.js in the proxy section.

Build

$ npm run build

Tests

$ npm run test

# This will run all tests and jest-preview at the same time
$ npm run test:preview

Static typing analysis

$ npm run flow