Rancher 2 UI driver for the CloudSigma IaaS platform.
See the Rancher Documentation on how to add a node driver to your installation. The relevant part is in 'Adding Custom Node Drivers':
-
From the Global view, choose Tools > Drivers in the navigation bar. From the Drivers page, select the Node Drivers tab. In version prior to v2.2.0, you can select Node Drivers directly in the navigation bar.
-
Click Add Node Driver.
-
Complete the Add Node Driver form. Then click Create:
Key Value Download URL https://github.com/cloudsigma/docker-machine-driver-cloudsigma/releases/download/v2.0.0/docker-machine-driver-cloudsigma_v2.0.0_linux_amd64.zip
Custom UI URL TODO: add link to generated component.js
Whitelist Domains TODO: whitelist domains
-
Wait for the driver to become "Active"
-
From the Global view, go to Clusters -> Add Cluster, your driver and custom UI should show up.
This package contains a small web-server that will serve up the custom driver UI at http://localhost:3000/component.js
.
You can run this while developing and point the Rancher settings there.
npm start
- The driver name can be optionally overridden:
npm start -- --name=DRIVERNAME
- The compiled files are viewable at http://localhost:3000.
- Note: The development server does not currently automatically restart when files are changed.
For other users to see your driver, you need to build it and host the output on a server accessible from their browsers.
npm run build
- Copy the contents of the
dist
directory onto a webserver.- If your Rancher is configured to use HA or SSL, the server must also be available via HTTPS.