From e27ae2115ce355bbbb2b96c86c1988c440f2e114 Mon Sep 17 00:00:00 2001 From: tgic Date: Mon, 31 Aug 2015 01:49:56 +0800 Subject: [PATCH] make docker build happy --- Dockerfile | 2 ++ sshpiperd/ldflags.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 26edc237..893826b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ MAINTAINER tgic RUN apt-get update && apt-get install -y libpam0g-dev libpam-google-authenticator +RUN ln -sf /usr/include/security/_pam_types.h /usr/include/security/pam_types.h + RUN go get -d -tags pam github.com/tg123/sshpiper/sshpiperd RUN go install -ldflags "$(/go/src/github.com/tg123/sshpiper/sshpiperd/ldflags.sh)" -tags pam github.com/tg123/sshpiper/sshpiperd diff --git a/sshpiperd/ldflags.sh b/sshpiperd/ldflags.sh index ffd681cc..3a46cd48 100755 --- a/sshpiperd/ldflags.sh +++ b/sshpiperd/ldflags.sh @@ -5,4 +5,4 @@ cd $GOPATH/src/github.com/tg123/sshpiper githash=`git log --pretty=format:%h,%ad --name-only --date=short . | head -n 1` ver=`cat ver` -echo "-X main.version $ver -X main.githash $githash" +echo "-X main.version=$ver -X main.githash=$githash"