Skip to content

Commit 4209af1

Browse files
committed
move to Github releases
1 parent d130d84 commit 4209af1

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

.goxc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"ArtifactsDest": "build",
33
"ConfigVersion": "0.9",
4-
"PackageVersion": "0.12",
54
"TaskSettings": {
65
"bintray": {
76
"user": "gondor",
87
"package": "docker-volume-netshare",
98
"repository": "docker",
109
"subject": "pacesys"
10+
},
11+
"publish-github": {
12+
"owner": "gondor",
13+
"repository": "docker-volume-netshare"
1114
},
1215
"debs": {
1316
"metadata": {

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ install:
99
- go get github.com/stretchr/testify
1010
- go get -v ./...
1111
env:
12-
- GO15VENDOREXPERIMENT=1
12+
- GO15VENDOREXPERIMENT=1

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
VERSION = 0.13
12
GO_FMT = gofmt -s -w -l .
2-
GO_XC = goxc -os="linux freebsd openbsd netbsd"
3+
GO_XC = goxc -os="linux" -tasks-="rmbin"
34

45
GOXC_FILE = .goxc.local.json
56

@@ -8,11 +9,17 @@ all: deps compile
89
compile: goxc
910

1011
goxc:
11-
$(shell echo '{\n "ConfigVersion": "0.9",' > $(GOXC_FILE))
12+
$(shell echo '{\n "ConfigVersion": "0.9",\n "PackageVersion": "$(VERSION)",' > $(GOXC_FILE))
1213
$(shell echo ' "TaskSettings": {' >> $(GOXC_FILE))
1314
$(shell echo ' "bintray": {\n "apikey": "$(BINTRAY_APIKEY)"' >> $(GOXC_FILE))
15+
$(shell echo ' },' >> $(GOXC_FILE))
16+
$(shell echo ' "publish-github": {' >> $(GOXC_FILE))
17+
$(shell echo ' "apikey": "$(GITHUB_APIKEY)",' >> $(GOXC_FILE))
18+
$(shell echo ' "body": "",' >> $(GOXC_FILE))
19+
$(shell echo ' "include": "*.zip,*.tar.gz,*.deb,docker-volume-netshare_$(VERSION)_linux_amd64-bin"' >> $(GOXC_FILE))
1420
$(shell echo ' }\n } \n}' >> $(GOXC_FILE))
1521
$(GO_XC)
22+
cp build/$(VERSION)/linux_amd64/docker-volume-netshare build/$(VERSION)/docker-volume-netshare_$(VERSION)_linux_amd64-bin
1623

1724
deps:
1825
go get
@@ -22,3 +29,6 @@ format:
2229

2330
bintray:
2431
$(GO_XC) bintray
32+
33+
github:
34+
$(GO_XC) publish-github

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Docker NFS, AWS EFS & Samba/CIFS Volume Plugin
22

3-
[![Build Status](https://travis-ci.org/gondor/docker-volume-netshare.svg)](https://travis-ci.org/gondor/docker-volume-netshare)
3+
[![Build Status](https://travis-ci.org/gondor/docker-volume-netshare.svg)](https://travis-ci.org/gondor/docker-volume-netshare) [![release](http://github-release-version.herokuapp.com/github/gondor/docker-volume-netshare/release.svg?style=flat)](https://github.com/gondor/docker-volume-netshare/releases/latest)
44

55
Mount NFS v3/4, AWS EFS or CIFS inside your docker containers. This is a docker plugin which enables these volume types to be directly mounted within a container.
66

@@ -18,8 +18,6 @@ sudo mount -t nfs4 1.1.1.1:/mountpoint /target/mount
1818

1919
## Installation
2020

21-
**Latest Version:** 0.12
22-
2321
#### From Source
2422

2523
```
@@ -29,9 +27,7 @@ $ go build
2927

3028
#### From Binaries
3129

32-
* Architecture i386 [ [linux](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_linux_386.tar.gz?direct) / [netbsd](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_netbsd_386.zip?direct) / [freebsd](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_freebsd_386.zip?direct) / [openbsd](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_openbsd_386.zip?direct) ]
33-
* Architecture amd64 [ [linux](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_linux_amd64.tar.gz?direct) / [netbsd](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_netbsd_amd64.zip?direct) / [freebsd](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_freebsd_amd64.zip?direct) / [openbsd](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_openbsd_amd64.zip?direct) ]
34-
* Debian Package [ [i386](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_i386.deb?direct) ] / [amd64](https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_amd64.deb?direct) ] ]
30+
Binaries are available through GitHub releases. You can download the appropriate binary, package and version from the [Releases](https://github.com/gondor/docker-volume-netshare/releases) page
3531

3632
#### On Ubuntu / Debian
3733

@@ -40,8 +36,8 @@ The method below will install the sysvinit and /etc/default options that can be
4036
1. Install the Package
4137

4238
```
43-
$ wget https://dl.bintray.com//content/pacesys/docker/docker-volume-netshare_0.12_i386.deb
44-
$ sudo dpkg -i docker-volume-netshare_0.12_i386.deb
39+
$ wget https://github.com/gondor/docker-volume-netshare/releases/download/v0.13/docker-volume-netshare_0.13_amd64.deb
40+
$ sudo dpkg -i docker-volume-netshare_0.13_amd64.deb
4541
```
4642

4743
2. Modify the startup options in `/etc/default/docker-volume-netshare`

netshare/drivers/nfs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ func (n nfsDriver) fixSource(name string) string {
131131
}
132132

133133
func (n nfsDriver) mountVolume(source, dest string, version int) error {
134+
log.Debugf("Enter mountVolume")
135+
134136
var cmd string
135137

136138
options := n.mountOptions(n.mountm.GetOptions(dest))
@@ -140,11 +142,13 @@ func (n nfsDriver) mountVolume(source, dest string, version int) error {
140142
}
141143
switch version {
142144
case 3:
145+
log.Debugf("Mounting with NFSv3 - src: %s, dest: %s", source, dest)
143146
if len(opts) < 1 {
144147
opts = DefaultNfsV3
145148
}
146149
cmd = fmt.Sprintf("mount -o %s %s %s", opts, source, dest)
147150
default:
151+
log.Debugf("Mounting with NFSv4 - src: %s, dest: %s", source, dest)
148152
if len(opts) > 0 {
149153
cmd = fmt.Sprintf("mount -t nfs4 -o %s %s %s", opts, source, dest)
150154
} else {

0 commit comments

Comments
 (0)