Skip to content

Rancher UI driver for the CloudSigma IaaS platform

License

Notifications You must be signed in to change notification settings

cloudsigma/ui-driver-cloudsigma

 
 

Repository files navigation

Rancher 2 CloudSigma UI Driver

Rancher 2 UI driver for the CloudSigma IaaS platform.

Using the CloudSigma UI Driver

See the Rancher Documentation on how to add a node driver to your installation. The relevant part is in 'Adding Custom Node Drivers':

  1. 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.

  2. Click Add Node Driver.

  3. 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
  4. Wait for the driver to become "Active"

  5. From the Global view, go to Clusters -> Add Cluster, your driver and custom UI should show up.

Development

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.

Building

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.

Languages

  • JavaScript 58.2%
  • Handlebars 41.2%
  • CSS 0.6%