summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDan Duvall <dduvall@wikimedia.org>2018-08-14 16:33:37 -0700
committerDan Duvall <dduvall@wikimedia.org>2018-08-29 15:35:40 -0700
commit9bfa2dd194c38de06cd3cf02afb9f9e668f782ef (patch)
tree8071381a4d00a136a1c132ef33cf193526ef63d2 /Makefile
parentb6c9e31fc5e7965e52614b2fc82dda7403476061 (diff)
downloadblubber-9bfa2dd194c38de06cd3cf02afb9f9e668f782ef.tar.gz
Provide a stateless blubberoid microservice
The `blubber` command already gets everything it needs from explicit inputs, which makes it an easy candidate for running as a simple microservice. This patch provides exactly that in the form of `blubberoid`, an HTTP server that processes Blubber configuration. To start the daemon: make && blubberoid To use it: curl -i -X POST --data-binary @blubber.example.yaml http://:8748/[variant] Change-Id: Ieea73048d092b974da424ba40ddc90eaf693af0b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3fbc19d..decdf84 100644
--- a/Makefile
+++ b/Makefile
@@ -15,18 +15,18 @@ install:
# workaround bug in case CURDIR is a symlink
# see https://github.com/golang/go/issues/24359
cd "$(REAL_CURDIR)" && \
- go install -v -ldflags "$(GO_LDFLAGS)"
+ go install -v -ldflags "$(GO_LDFLAGS)" $(GO_PACKAGES)
release:
- gox -output="$(RELEASE_DIR)/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' -ldflags '$(GO_LDFLAGS)' $(PACKAGE)
+ gox -output="$(RELEASE_DIR)/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' -ldflags '$(GO_LDFLAGS)' $(GO_PACKAGES)
cp LICENSE "$(RELEASE_DIR)"
- for f in "$(RELEASE_DIR)"/*/blubber; do \
+ for f in "$(RELEASE_DIR)"/*/{blubber,blubberd}; do \
shasum -a 256 "$${f}" | awk '{print $$1}' > "$${f}.sha256"; \
done
lint:
@echo > .lint-gofmt.diff
- @go list -f $(GO_LIST_GOFILES) ./... | while read f; do \
+ @go list -f $(GO_LIST_GOFILES) $(GO_PACKAGES) | while read f; do \
gofmt -e -d "$${f}" >> .lint-gofmt.diff; \
done
@test -z "$(grep '[^[:blank:]]' .lint-gofmt.diff)" || (echo "gofmt found errors:"; cat .lint-gofmt.diff; exit 1)