Skip to content

Instantly share code, notes, and snippets.

@dhrp
Created March 11, 2020 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhrp/0d5ff87c71b01231f6009d2293e95121 to your computer and use it in GitHub Desktop.
Save dhrp/0d5ff87c71b01231f6009d2293e95121 to your computer and use it in GitHub Desktop.
Main file to build rancher/machine/drivers/openstack
package main
// This file is simply to build the rancher openstack driver.
// it's for the latest openstack (train) as we're using at GreenEdge
// It is required because the openstack driver is otherwise included
// by default in the docker-machine binary.
// Simply put it somewhere, and build it with
// go build -o docker-machine-driver-greenedge and then use it like
// docker-machine create --driver greenedge [etc]
import (
"github.com/rancher/machine/drivers/openstack"
"github.com/rancher/machine/libmachine/drivers/plugin"
)
func main() {
plugin.RegisterDriver(openstack.NewDriver("", ""))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment