Skip to content

RedHatInsights/uhc-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14,941 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCM UI

This repository contains the UI components for the OpenShift Cluster Manager site.

The UI is a JavaScript/TypeScript application written in React and Redux.

Slack channels: #forum-cluster-management for OCM in general, #ocm-osd-ui for UI.

Table of contents

Requirements

* see package.json for the compatible versions

Setup

For a first time setup, it's required to run npm exec -- fec patch-etc-hosts.

This may ask for your sudo password to add some entries to /etc/hosts.

If you're on macOS, then you will need to initialize a new podman virtual machine with podman machine init.

If your macOS is running on an M (ARM) processor, then it's recommended to initialize with this image --image docker://quay.io/podman/machine-os:5.5. Higher image versions may not be supported.

If you intend to contribute code, also refer to the Setup section of the Contributing guide.

Building

To build the application run these commands:

npm install
npm run build

Running locally

Prerequisite: Podman must be running. On macOS, verify the virtual machine is started with podman machine start.

There are two development scripts available:

npm run dev (Hot Module Reloading)

Note: This script requires Red Hat VPN connection to access the UI.

npm install && npm run dev

npm start

npm install && npm start

The UI will be available at https://prod.foo.redhat.com:1337/openshift/

For more details on how the dev environment works (FEC, Chrome container, custom ports), see the FEC Development Environment section in the contributing guide.

By default, UI will use a real staging backend. You can switch between real backends and mockserver (see below) at any time by appending ?env=staging / ?env=production / ?env=mockdata URL param. (src/config/ directory contains some more options, but they might not work.)

You can find more information about mocked data in the mocked APIs guide.

In development mode, analytics events are configured to be routed to the OCM Web Portal development source on Segment. If you see them in the production source instead, reload the page once (this will stick until local storage is cleared).

By default, the UI runs Assisted Installer without standalone mode. To run with Assisted Installer in standalone mode you need to follow these steps:

Continuous integration

See Continuous integration doc.

Environments and Deployments

uhc-portal branch deployed env insights-chrome default backend
main https://console.dev.redhat.com/openshift stable version staging
main (specific revision) https://console.redhat.com/openshift stable version production

Issues/Troubleshooting

If you get a timeout/network connection issue when running npm install, try increasing the timeout e.g. npm install --fetch-retry-mintimeout 600000.

Contributing

See Contributing guide.

Release

A detailed explanation of how to make a release can be found on the Release to Production page

About

This project is the web portal for the OpenShift Cluster Manager suite of services, hosted at "console.redhat.com/openshift".

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors