Skip to content

dlabaj/odh-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5e665d3 · Jun 22, 2022

History

48 Commits
Jan 31, 2022
Feb 8, 2022
Jan 31, 2022
Jan 31, 2022
Jan 26, 2022
Jan 26, 2022
Jan 26, 2022
Jan 20, 2022
Oct 19, 2021
Oct 21, 2021
Nov 19, 2021
Nov 19, 2021
Oct 19, 2021
Jan 19, 2022
Feb 1, 2022
Jan 18, 2022
Feb 8, 2022
Nov 4, 2021
Feb 8, 2022
Feb 8, 2022

Repository files navigation

Open Data Hub Plugin for OpenShift

This project is a the plugin version of Open Data Hub. It requires OpenShift 4.10 to use.

Local development

  1. yarn install
  2. yarn run start

The server runs on port 9001 with CORS enabled.

See the plugin development section in Console Dynamic Plugins README for details on how to run OpenShift console using local plugins.

Deployment on cluster

You can deploy the plugin to a cluster by applying manifest.yaml.

oc apply -f manifest.yaml

Once deployed, patch the Console operator config to enable the plugin.

oc patch consoles.operator.openshift.io cluster --patch '{ "spec": { "plugins": ["console-customization"] } }' --type=merge

Docker image

  1. Build the image:
    docker build -t quay.io/$USER/odh-plugin:latest .
  2. Run the image:
    docker run -it --rm -d -p 9001:80 quay.io/$USER/odh-plugin:latest
  3. Push the image to image registry:
    docker push quay.io/$USER/odh-plugin:latest

Update and apply manifest.yaml to use a custom plugin image.