-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
49 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ LICENSE | |
Makefile | ||
README.md | ||
README.md.bu | ||
VERSION | ||
build | ||
circle.yml | ||
docker-entrypoint.sh | ||
|
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 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 |
---|---|---|
@@ -1,25 +1,22 @@ | ||
REPO=malice | ||
NAME=yara | ||
VERSION=$(shell cat VERSION) | ||
DEV_RUN_OPTS ?= TEST | ||
dev: | ||
docker build -f Dockerfile -t $(NAME):dev . | ||
docker run --rm $(NAME):dev $(DEV_RUN_OPTS) | ||
|
||
all: build size test | ||
|
||
build: | ||
docker build -t malice/$(NAME):$(VERSION) . | ||
sed -i.bu 's/docker image-.*-blue/docker image-$(shell docker images --format "{{.Size}}" malice/$(NAME):$(VERSION))-blue/g' README.md | ||
docker build -t $(REPO)/$(NAME):$(VERSION) . | ||
|
||
size: | ||
sed -i.bu 's/docker image-.*-blue/docker image-$(shell docker images --format "{{.Size}}" $(REPO)/$(NAME):$(VERSION))-blue/' README.md | ||
|
||
release: | ||
rm -rf release && mkdir release | ||
go get github.com/progrium/gh-release/... | ||
cp build/* release | ||
gh-release create maliceio/malice-$(NAME) $(VERSION) \ | ||
$(shell git rev-parse --abbrev-ref HEAD) $(VERSION) | ||
# glu hubtag maliceio/malice-$(NAME) $(VERSION) | ||
tags: | ||
docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}" $(REPO)/$(NAME) | ||
|
||
circleci: | ||
rm -f ~/.gitconfig | ||
go get -u github.com/gliderlabs/glu | ||
glu circleci | ||
test: | ||
docker run --rm $(REPO)/$(NAME):$(VERSION) --help | ||
docker run --rm $(REPO)/$(NAME):$(VERSION) -V /bin/sh > results.json | ||
cat results.json | jq . | ||
cat results.json | jq -r .$(NAME).markdown | ||
|
||
.PHONY: build release | ||
.PHONY: build size tags test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"yara":{"matches":null}} |