Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 1.78 KB

README.md

File metadata and controls

56 lines (46 loc) · 1.78 KB

rancher-extension-triton

A Rancher extension for Triton.

This project was created by following the instructions outlined in https://extensions.rancher.io/extensions/extensions-getting-started.

Building the Extension

Install nvm:

brew install nvm

Install Node.js version 16:

nvm install 16

Load Node.js version 16:

nvm use 16

Install dependencies:

yarn install

Build the extension:

yarn build-pkg triton

Serve the extension so that you can load it into Rancher:

yarn serve-pkgs

Publishing the Extension

Manually Publishing an Extension Catalog Image

rm -rf assets charts extensions index.yaml dist-pkg 2>/dev/null
yarn publish-pkgs -cf -r harbor.vrcis.com -o rancher -i ''

If building on a Mac with an Apple chip (arm64) you will need to manually add --platform linux/amd64 to the docker build line to work around rancher/dashboard#9362 in the following file:

./node_modules/@rancher/shell/scripts/extension/helm/scripts/package

If building on a Mac you will also need to work around rancher/dashboard#12122.

See https://extensions.rancher.io/extensions/publishing#manually-publishing-an-extension-catalog-image for details.

Rancher Extension Links