diff options
author | 2018-10-03 22:11:28 -0700 | |
---|---|---|
committer | 2018-10-04 13:25:58 -0700 | |
commit | b3254568d65e53c564a846a666fa6af912c9b474 (patch) | |
tree | ad374fc666c8628e840141ecd8b9d0e85c9007de /sms-service/src/preload/Makefile | |
parent | c660d1b7dc666e23aed3e90ce6a01cd50172e9bc (diff) |
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 <kiran.k.kamineni@intel.com>
Diffstat (limited to 'sms-service/src/preload/Makefile')
-rw-r--r-- | sms-service/src/preload/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
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
|