containers / docker-lvm-plugin

Docker volume plugin for LVM volumes
GNU Lesser General Public License v3.0
155 stars 64 forks source link

Build is failed #36

Closed che closed 6 years ago

che commented 7 years ago

Hi ,

make

go-md2man -in man/docker-lvm-plugin.8.md -out docker-lvm-plugin.8 /usr/bin/go build -o docker-lvm-plugin .

_/home/dev/docker-lvm-plugin

./main.go:66: cannot use lvmPluginSocketPath (type string) as type int in argument to h.Handler.ServeUnix Makefile:19: recipe for target 'lvm-plugin-build' failed make: *** [lvm-plugin-build] Error 2

go env

GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/dev/docker-lvm-plugin" GORACE="" GOROOT="/usr/lib/go-1.6" GOTOOLDIR="/usr/lib/go-1.6/pkg/tool/linux_amd64" GO15VENDOREXPERIMENT="1" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" CXX="g++" CGO_ENABLED="1"

On Ubuntu 16.04.

Thanks you.

shishir-a412ed commented 7 years ago

@che Works for me on Ubuntu 16.04.

# make
go-md2man -in man/docker-lvm-plugin.8.md -out docker-lvm-plugin.8
/usr/bin/go build -o docker-lvm-plugin .
# sudo make install
install -D -m 644 etc/docker/docker-lvm-plugin /etc/docker/docker-lvm-plugin
install -D -m 644 systemd/docker-lvm-plugin.service /usr/lib/systemd/system/docker-lvm-plugin.service
install -D -m 644 systemd/docker-lvm-plugin.socket /usr/lib/systemd/system/docker-lvm-plugin.socket
install -D -m 755 docker-lvm-plugin /usr/libexec/docker/docker-lvm-plugin
install -D -m 644 docker-lvm-plugin.8 /usr/share/man/man8/docker-lvm-plugin.8
# cat /etc/os-release 
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

Are you using the latest commit from the master branch ?

Shishir

batmany13 commented 7 years ago

@shishir-a412ed I believe this broke due to this change in go-plugins-helpers in PR 67. "ServeUnix" changed their function signature so that the 2nd parameter is no longer a string, but an int. A forked repo fixed this by doing this change.

@che when I made that change, the build worked!

shishir-a412ed commented 6 years ago

@batmany13 Please see this: https://github.com/projectatomic/docker-lvm-plugin/issues/41#issuecomment-379565667

shishir-a412ed commented 6 years ago

@che @batmany13 I have also updated the docker-lvm-plugin to work with latest version of go-plugin-helpers (Although it should work with the old version too). Please see this: #47

shishir-a412ed commented 6 years ago

@rhatdan I think we can close this one. wdyt ?

rhatdan commented 6 years ago

Fine with me.