From b3254568d65e53c564a846a666fa6af912c9b474 Mon Sep 17 00:00:00 2001 From: Kiran Kamineni Date: Wed, 3 Oct 2018 22:11:28 -0700 Subject: Add preload commandline app to load secrets Add a preload golang app that reads configuration files and loads the domains and corresponding secrets to SMS. The tool can configured via command line options. P2: Add support for domains as well as domain in JSON P3: Add sampleformat.json Issue-ID: AAF-532 Change-Id: If3f880b8ce61a282dc015cac7df723453b91f114 Signed-off-by: Kiran Kamineni --- sms-service/src/preload/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sms-service/src/preload/Makefile (limited to 'sms-service/src/preload/Makefile') diff --git a/sms-service/src/preload/Makefile b/sms-service/src/preload/Makefile new file mode 100644 index 0000000..c236049 --- /dev/null +++ b/sms-service/src/preload/Makefile @@ -0,0 +1,30 @@ +GOPATH := $(shell realpath "$(CURDIR)/../../") +BINARY := preload +PLATFORM := linux +DEPENDENCIES := github.com/golang/dep/cmd/dep + +export GOPATH ... + +all: test build +deploy: test build + +build: deps format + CGO_ENABLED=0 GOOS=$(PLATFORM) go build -a \ + -ldflags '-extldflags "-static"' \ + -o $(GOPATH)/target/$(BINARY) -v $(BINARY).go + +clean: + go clean + rm -f $(GOPATH)/target/$(BINARY) + +test: + @echo "Yet to Implement" + +format: + go fmt ./... + +deps: + go get -u $(DEPENDENCIES) + $(GOPATH)/bin/dep ensure + +.PHONY: test -- cgit 1.2.3-korg