mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
* add detection of ELF security features Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix linting Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update json schema with file executable data Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update expected fixure when no tty present Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * more detailed differ Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * use json differ Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove json schema addition Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * regenerate json schema Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix mimtype set ref Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
BIN=./bin
|
|
TOOL_IMAGE=localhost/syft-bin-build-tools:latest
|
|
VERIFY_FILE=actual_verify
|
|
|
|
all: build verify
|
|
|
|
tools-check:
|
|
@sha256sum -c Dockerfile.sha256 || (echo "Tools Dockerfile has changed" && exit 1)
|
|
|
|
# for selfrando...
|
|
# docker buildx build --platform linux/amd64 -t $(TOOL_IMAGE) .
|
|
|
|
tools:
|
|
@(docker inspect $(TOOL_IMAGE) > /dev/null && make tools-check) || (docker build -t $(TOOL_IMAGE) . && sha256sum Dockerfile > Dockerfile.sha256)
|
|
|
|
build: tools
|
|
mkdir -p $(BIN)
|
|
docker run -i -v $(shell pwd):/mount -w /mount/project $(TOOL_IMAGE) make
|
|
|
|
verify: tools
|
|
@rm -f $(VERIFY_FILE)
|
|
docker run -i -v $(shell pwd):/mount -w /mount/project $(TOOL_IMAGE) make verify > $(VERIFY_FILE)
|
|
@python ./differ expected_verify $(VERIFY_FILE)
|
|
|
|
debug:
|
|
docker run -i --rm -v $(shell pwd):/mount -w /mount/project $(TOOL_IMAGE) bash
|
|
|
|
cache.fingerprint:
|
|
@find project Dockerfile Makefile -type f -exec md5sum {} + | awk '{print $1}' | sort | tee cache.fingerprint
|
|
|
|
clean:
|
|
rm -f $(BIN)/*
|
|
|
|
.PHONY: build verify debug build-image build-bins clean dockerfile-check cache.fingerprint
|