Browse Source

Modify repository structure to allow use of go install

Signed-off-by: Robert Breker <robert.breker@citrix.com>
getsshkeypath_pr
Robert Breker 9 years ago
parent
commit
2386b54ecd
  1. 21
      README.md
  2. 4
      bin/Makefile
  3. 2
      docker-machine-driver-xenserver.go
  4. 0
      xenserver/xenapiclient.go
  5. 0
      xenserver/xenserver.go

21
README.md

@ -1,17 +1,24 @@
[![Build Status](https://travis-ci.org/xenserver/docker-machine-driver-xenserver.svg?branch=master)](https://travis-ci.org/xenserver/docker-machine-driver-xenserver)
# docker-machine-driver-xenserver
This is the XenServer driver plugin for Docker Machine. It allows the orchestration of machines on Citrix XenServer.
This is the XenServer driver plugin for Docker Machine. It allows the
orchestration of machines on Citrix XenServer.
# Installation
Following the installation of Docker Machine, you can install the docker-machine-xenserver-driver:
# Installation from source
Following the installation of Golang and Docker Machine, you can install the
docker-machine-xenserver-driver:
```bash
got get github.com/xenserver/docker-machine-driver-xenserver
cd $GOPATH/src/github.com/xenserver/docker-machine-driver-xenserver/bin
make
mv docker-machine-driver-xenserver $GOPATH/bin/
go install github.com/xenserver/docker-machine-driver-xenserver
```
# Usage
The usual Docker Machine commands apply:
```bash
docker-machine create -d xenserver --xenserver-server myip --xenserver-username myusername --xenserver-password mypassword mynewmmachine
docker-machine env mynewmmachine
```
# CLI Options:
- `--xenserver-vcpu-count`: vCPU number for docker VM.

4
bin/Makefile

@ -1,4 +0,0 @@
default: build
build:
GOGC=off go build -i -o docker-machine-driver-xenserver

2
bin/main.go → docker-machine-driver-xenserver.go

@ -2,7 +2,7 @@ package main
import (
"github.com/docker/machine/libmachine/drivers/plugin"
"github.com/xenserver/docker-machine-driver-xenserver"
"github.com/xenserver/docker-machine-driver-xenserver/xenserver"
)
func main() {

0
xenapiclient.go → xenserver/xenapiclient.go

0
xenserver.go → xenserver/xenserver.go

Loading…
Cancel
Save