Skip to content

Commit

Permalink
Merge pull request #20 from johscheuer/add-dep-managment
Browse files Browse the repository at this point in the history
Add dependency management
  • Loading branch information
johscheuer authored Feb 28, 2017
2 parents 3be61eb + 3d0b67f commit 8aadb77
Show file tree
Hide file tree
Showing 1,509 changed files with 369,600 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: go
go:
- 1.8
- 1.7
- tip
os:
Expand All @@ -8,9 +9,7 @@ env:
global:
- GOARCH=amd64
install:
- go get -u .
- go fmt ./...
- go vet $(go list ./...)
- CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match) -X main.revision=$(git log -1 --format=%h)" -a -installsuffix cgo -o bin/docker-quobyte-plugin
.

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Get the code
$ go get -u github.com/quobyte/docker-volume
```

### Dependency Management

For the dependency management we use [golang dep](https://github.com/golang/dep)

### Linux

```
Expand All @@ -36,7 +40,7 @@ $ GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/docker-quobyte-plugin
### Docker

```
$ docker run --rm -v "$GOPATH":/work -e "GOPATH=/work" -w /work/src/github.com/quobyte/docker-volume golang:1.6 go build -v -ldflags "-s -w" -o bin/quobyte-docker-plugin
$ docker run --rm -v "$GOPATH":/work -e "GOPATH=/work" -w /work/src/github.com/quobyte/docker-volume golang:1.8 go build -v -ldflags "-s -w" -o bin/quobyte-docker-plugin
```

## Usage
Expand Down
86 changes: 86 additions & 0 deletions lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"memo": "9819d78dfa0f3c9a5433487021cfc1f79ee33129230734074f5cb3eb8bae42d1",
"projects": [
{
"name": "github.com/Microsoft/go-winio",
"version": "v0.3.8",
"revision": "fff283ad5116362ca252298cfc9b95828956d85d",
"packages": [
"."
]
},
{
"name": "github.com/Sirupsen/logrus",
"version": "v0.11.4",
"revision": "0208149b40d863d2c1a2f8fe5753096a9cf2cc8b",
"packages": [
"."
]
},
{
"name": "github.com/coreos/go-systemd",
"version": "v14",
"revision": "f5366d01ad57abda9ec7e1a0c50a111712aa7745",
"packages": [
"activation",
"util"
]
},
{
"name": "github.com/coreos/pkg",
"version": "v3",
"revision": "3ac0863d7acf3bc44daf49afef8919af12f704ef",
"packages": [
"dlopen"
]
},
{
"name": "github.com/docker/go-connections",
"version": "v0.2.1",
"revision": "990a1a1a70b0da4c4cb70e117971a4f0babfbf1a",
"packages": [
"sockets"
]
},
{
"name": "github.com/docker/go-plugins-helpers",
"revision": "77bfeec724ac5ae33f6a820c7ee6c98301b5a121",
"packages": [
"volume"
]
},
{
"name": "github.com/opencontainers/runc",
"version": "v0.1.1",
"revision": "baf6536d6259209c3edfa2b22237af82942d3dfa",
"packages": [
"libcontainer/user"
]
},
{
"name": "github.com/quobyte/api",
"branch": "master",
"revision": "bf713b5a4333f44504fa1ce63690de45cfed6413",
"packages": [
"."
]
},
{
"name": "golang.org/x/net",
"branch": "master",
"revision": "906cda9512f77671ab44f8c8563b13a8e707b230",
"packages": [
"proxy"
]
},
{
"name": "golang.org/x/sys",
"branch": "master",
"revision": "e4594059fe4cde2daf423055a596c2cd1e6c9adf",
"packages": [
"unix",
"windows"
]
}
]
}
13 changes: 1 addition & 12 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"flag"
"log"
"os"
"os/user"
"strconv"

"github.com/docker/go-plugins-helpers/volume"
)
Expand Down Expand Up @@ -51,14 +49,5 @@ func main() {
qDriver := newQuobyteDriver(*quobyteAPIURL, *quobyteUser, *quobytePassword, *quobyteMountPath)
handler := volume.NewHandler(qDriver)

g, err := user.LookupGroup(*group)
if err != nil {
log.Fatalln(err)
}

gid, err := strconv.Atoi(g.Gid)
if err != nil {
log.Fatalln(err)
}
log.Println(handler.ServeUnix(quobyteID, gid))
log.Println(handler.ServeUnix(*group, quobyteID))
}
10 changes: 10 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"dependencies": {
"github.com/docker/go-plugins-helpers": {
"revision": "77bfeec724ac5ae33f6a820c7ee6c98301b5a121"
},
"github.com/quobyte/api": {
"branch": "master"
}
}
}
1 change: 1 addition & 0 deletions vendor/github.com/Microsoft/go-winio/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/github.com/Microsoft/go-winio/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/github.com/Microsoft/go-winio/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/github.com/Microsoft/go-winio/archive/tar/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8aadb77

Please sign in to comment.