Added Makefile for quorumclient 35/40335/4
authorgiri <hg0071052@techmahindra.com>
Thu, 29 Mar 2018 04:58:14 +0000 (04:58 +0000)
committergiri <hg0071052@techmahindra.com>
Wed, 4 Apr 2018 04:31:43 +0000 (04:31 +0000)
Added Makefile for quorumclient

Change-Id: Iee3912a8a675c7eab2514fc9257ae97dfc8b7157
Issue-ID: AAF-205
Signed-off-by: giri <hg0071052@techmahindra.com>
sms-quorum/bin/Dockerfile
sms-quorum/src/smsquorum/Makefile [new file with mode: 0644]

index 1f3a2d5..2e1a191 100644 (file)
@@ -6,4 +6,4 @@ LABEL maintainer="Girish Havaldar <hg0071052@techmahindra.com>"
 
 ADD quorumclient /smsquorum/bin/quorumclient
 RUN chmod +x /smsquorum/bin/quorumclient
-ENTRYPOINT ["/smsquorum/bin/quorumclient"]
\ No newline at end of file
+ENTRYPOINT ["/smsquorum/bin/quorumclient"]
diff --git a/sms-quorum/src/smsquorum/Makefile b/sms-quorum/src/smsquorum/Makefile
new file mode 100644 (file)
index 0000000..d264de9
--- /dev/null
@@ -0,0 +1,25 @@
+GOPATH := $(shell realpath "$(PWD)/../../")\r
+BINARY := quorumclient\r
+PLATFORM := linux\r
+\r
+export GOPATH ...\r
+\r
+all: test build\r
+deploy: test build\r
+\r
+build: format\r
+       CGO_ENABLED=0 GOOS=$(PLATFORM) go build -a \\r
+       -ldflags '-extldflags "-static"' \\r
+       -o $(GOPATH)/target/$(BINARY) -v quorumclient.go\r
+\r
+clean:\r
+       go clean\r
+       rm -f $(GOPATH)/target/$(BINARY)\r
+\r
+test: \r
+       @echo "Yet to Implement"\r
+\r
+format:\r
+       go fmt ./...\r
+\r
+.PHONY: test\r