npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

forklift-ui-pages

v0.0.5

Published

<img src="icons/forklift-logo-lightbg.svg" alt="Logo" width="100" />

Downloads

8

Readme

OpenShift Console Plugin For Forklift

Operator Repository on Quay DeepSource codecov

Forklift is a suite of migration tools that facilitate the migration of VM workloads to OpenShift Virtualization.

Prerequisites

Development

[ See the docs folder for more information ]

Start forklift operator server without authentication:

Start the forklift-operator inventory server on http://localhost:8080 withut authentication.

Using forklift-operator development code, login into the cluster and run the server without authentication:

  1. oc login (requires oc and an OpenShift cluster)
  2. AUTH_REQUIRED=false make run

Start the UI:

Using forklift console plugin code.

In one terminal window, run:

  1. yarn install
  2. yarn start

In another terminal window, run:

  1. oc login # if not loggedin (requires oc and an OpenShift cluster)
  2. yarn run start:console (requires docker or podman 3.2.0+)

See below for how to run start:console on Apple silicon ARM based machine.

This will run the OpenShift console in a container connected to the cluster you've logged into. The plugin HTTP server runs on port 9001 with CORS enabled.

Deployment on cluster

After pushing an image with your changes to a registry, you can deploy the plugin to a cluster by using helm.

# Add the forklift helm repo
helm repo add forklift https://yaacov.github.io/forklift-console-plugin

# Install the forklift console plugin using current namespace
helm install forklift-console-plugin forklift/forklift-console-plugin

Helm templates optional values:

| parameter | description | default value | |-----------|-------------|---------------| | plugin | name of "app" label used for objects | forklift-console-plugin | name | the deployment name | forklift-console-plugin | image | the plugin container image | quay.io/yaacov/forklift-console-plugin:latest | forkliftNamespace | forklift-operator namespace | konveyor-forklift

# for example, if forklift-operator is not installed in konveyor-forklift namespace,
# set "forkliftNamespace" value to the currect namespace:
helm install forklift-console-plugin \
   forklift/forklift-console-plugin \
   --set forkliftNamespace=openshift-mtv 

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

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

Build and push podman image

Before you can deploy your plugin on a cluster, you must build an image and push it to an image registry.

  1. Build the image:
    podman build -t quay.io/yaacov/forklift-console-plugin:latest .
  2. Run the image:
    podman run -it --rm -p 9001:8080 quay.io/yaacov/forklift-console-plugin:latest
  3. Push the image:
    podman push quay.io/yaacov/forklift-console-plugin:latest

Creating container images with Apple silicon and podman

If you have a Mac with Apple silicon, you will need to add the flag --platform=linux/amd64 when building the image to target the correct platform to run in-cluster.

Running start-console with Apple silicon and podman

If you are using podman on a Mac with Apple silicon, yarn run start-console might fail since it runs an amd64 image. You can workaround the problem with qemu-user-static by running these commands:

podman machine ssh
sudo -i
rpm-ostree install qemu-user-static
systemctl reboot