Added Makefile for quorumclient
Change-Id: Iee3912a8a675c7eab2514fc9257ae97dfc8b7157
Issue-ID: AAF-205
Signed-off-by: giri <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"]
--- /dev/null
+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