-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes; Changelog entry for Go MADV; doc cleanup; tutorial blo…
…ckgen has own dockerfile. Signed-off-by: Bartek Plotka <[email protected]>
- Loading branch information
Showing
6 changed files
with
48 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM quay.io/prometheus/busybox:latest | ||
LABEL maintainer="The Thanos Authors" | ||
|
||
COPY blockgen /bin/blockgen | ||
|
||
ENTRYPOINT [ "/bin/blockgen" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))-$(shell date +%Y-%m-%d)-$(shell git rev-parse --short HEAD) | ||
|
||
# docker builds docker with no tag. | ||
.PHONY: docker | ||
docker: | ||
@echo ">> building blockgen" | ||
@go build | ||
@echo ">> building docker image blockgen" | ||
@docker build -t "blockgen" . | ||
|
||
.PHONY: docker-push | ||
docker-push: | ||
@echo ">> pushing image improbable/blockgen:$(DOCKER_IMAGE_TAG)" | ||
@docker tag "blockgen" improbable/blockgen:"$(DOCKER_IMAGE_TAG)" | ||
@docker push improbable/blockgen:"$(DOCKER_IMAGE_TAG)" |