Skip to content

Commit 7339d42

Browse files
author
v_ycyxdeng
committed
The begining version of the docker machine driver zstack.
This is the very begining version. Make success, but not tested.
1 parent e9e7657 commit 7339d42

2 files changed

Lines changed: 436 additions & 16 deletions

File tree

main.go

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
package main
22

33
import (
4-
"os"
5-
6-
"github.com/Sirupsen/logrus"
7-
"github.com/urfave/cli"
4+
"github.com/docker/machine/libmachine/drivers/plugin"
5+
"github.com/rancher/docker-machine-driver-zstack/zstack"
86
)
97

10-
var VERSION = "v0.0.0-dev"
11-
128
func main() {
13-
app := cli.NewApp()
14-
app.Name = "docker-machine-driver-zstack"
15-
app.Version = VERSION
16-
app.Usage = "You need help!"
17-
app.Action = func(c *cli.Context) error {
18-
logrus.Info("I'm a turkey")
19-
return nil
20-
}
21-
22-
app.Run(os.Args)
9+
plugin.RegisterDriver(zstack.NewDriver())
2310
}

0 commit comments

Comments
 (0)