Skip to content

Instantly share code, notes, and snippets.

@Jurawa
Last active May 15, 2023 18:32
Show Gist options
  • Save Jurawa/dcbff6b4bb86558b1a95ff2182c60f4a to your computer and use it in GitHub Desktop.
Save Jurawa/dcbff6b4bb86558b1a95ff2182c60f4a to your computer and use it in GitHub Desktop.
Build OpenLens Locally on Mac

Build OpenLens Locally on Mac

Sources

https://k8slens.dev/
https://github.com/lensapp/lens
https://github.com/MuhammedKalkan/OpenLens
https://mikemiller.tech/2022/06/07/Building-OpenLens/

Clone & Build

# Clone lens
git clone [email protected]:lensapp/lens.git
cd lens

# Checkout most recent version
git checkout tags/v6.4.15

# Build app
nvm use 16 # check ./open-lens/package.json to confirm node version
npm install -g yarn # if necessary
yarn && yarn run build && yarn run build:app

Install OpenLens

open packages/open-lens/dist/

Open the .dmg file for the version you just built, and install the app as normal.

Install Pod Logs and Shell Extension

The pod logs and shell buttons were removed from the openlens core app in v6.3.0 and now need to be installed via an extension.

See:

lensapp/lens#6823
https://github.com/alebcay/openlens-node-pod-menu

Fix:

Go to extensions in the OpenLens menu (or shift+command+e). In the text box, enter @alebcay/openlens-node-pod-menu and click install. Once it shows in the installed extensions list, ensure it is enabled and then restart OpenLens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment