summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sms-quorum/bin/Dockerfile2
-rw-r--r--sms-quorum/src/smsquorum/Makefile25
2 files changed, 26 insertions, 1 deletions
diff --git a/sms-quorum/bin/Dockerfile b/sms-quorum/bin/Dockerfile
index 1f3a2d5..2e1a191 100644
--- a/sms-quorum/bin/Dockerfile
+++ b/sms-quorum/bin/Dockerfile
@@ -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
index 0000000..d264de9
--- /dev/null
+++ b/sms-quorum/src/smsquorum/Makefile
@@ -0,0 +1,25 @@
+GOPATH := $(shell realpath "$(PWD)/../../")
+BINARY := quorumclient
+PLATFORM := linux
+
+export GOPATH ...
+
+all: test build
+deploy: test build
+
+build: format
+ CGO_ENABLED=0 GOOS=$(PLATFORM) go build -a \
+ -ldflags '-extldflags "-static"' \
+ -o $(GOPATH)/target/$(BINARY) -v quorumclient.go
+
+clean:
+ go clean
+ rm -f $(GOPATH)/target/$(BINARY)
+
+test:
+ @echo "Yet to Implement"
+
+format:
+ go fmt ./...
+
+.PHONY: test