Update Makefile
This commit is contained in:
21
Makefile
21
Makefile
@@ -27,36 +27,23 @@ build:
|
|||||||
|
|
||||||
build-scratch:
|
build-scratch:
|
||||||
@echo "Building from scratch (Ubuntu 20.04 base)..."
|
@echo "Building from scratch (Ubuntu 20.04 base)..."
|
||||||
docker build -f Dockerfile.scratch -t tabledevil/file-analysis:scratch .
|
docker build -f Dockerfile.scratch -t tabledevil/file-analysis:latest .
|
||||||
@echo "✓ Build complete: tabledevil/file-analysis:scratch"
|
@echo "✓ Build complete: tabledevil/file-analysis:latest"
|
||||||
|
|
||||||
build-all: build build-scratch
|
|
||||||
@echo "✓ All variants built successfully"
|
|
||||||
|
|
||||||
# Test targets
|
# Test targets
|
||||||
test: test-remnux test-scratch
|
test:
|
||||||
@echo "✓ All tests passed"
|
|
||||||
|
|
||||||
test-remnux:
|
|
||||||
@echo "Testing REMnux build..."
|
@echo "Testing REMnux build..."
|
||||||
@docker run --rm tabledevil/file-analysis:latest bash -c "which fhelp && fhelp cheat pdfid"
|
@docker run --rm tabledevil/file-analysis:latest bash -c "which fhelp && fhelp cheat pdfid"
|
||||||
@docker run --rm tabledevil/file-analysis:latest bash -c "which pdfid.py && which capa && which visidata"
|
@docker run --rm tabledevil/file-analysis:latest bash -c "which pdfid.py && which capa && which visidata"
|
||||||
@docker run --rm tabledevil/file-analysis:latest bash -c "zsh --version && fish --version"
|
@docker run --rm tabledevil/file-analysis:latest bash -c "zsh --version && fish --version"
|
||||||
@echo "✓ REMnux build tests passed"
|
@echo "✓ REMnux build tests passed"
|
||||||
|
|
||||||
test-scratch:
|
|
||||||
@echo "Testing scratch build..."
|
|
||||||
@docker run --rm tabledevil/file-analysis:scratch bash -c "which fhelp && fhelp cheat pdfid"
|
|
||||||
@docker run --rm tabledevil/file-analysis:scratch bash -c "which pdfid.py && which capa && which pwsh"
|
|
||||||
@docker run --rm tabledevil/file-analysis:scratch bash -c "zsh --version && fish --version"
|
|
||||||
@echo "✓ Scratch build tests passed"
|
|
||||||
|
|
||||||
# Docker Hub push
|
# Docker Hub push
|
||||||
push:
|
push:
|
||||||
@echo "Pushing images to Docker Hub..."
|
@echo "Pushing images to Docker Hub..."
|
||||||
docker push tabledevil/file-analysis:latest
|
docker push tabledevil/file-analysis:latest
|
||||||
docker push tabledevil/file-analysis:remnux
|
|
||||||
docker push tabledevil/file-analysis:scratch
|
|
||||||
@echo "✓ Images pushed successfully"
|
@echo "✓ Images pushed successfully"
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
@@ -71,8 +58,6 @@ clean:
|
|||||||
shell:
|
shell:
|
||||||
docker run -it --rm -v "$$(pwd):/data" tabledevil/file-analysis:latest
|
docker run -it --rm -v "$$(pwd):/data" tabledevil/file-analysis:latest
|
||||||
|
|
||||||
shell-scratch:
|
|
||||||
docker run -it --rm -v "$$(pwd):/data" tabledevil/file-analysis:scratch
|
|
||||||
|
|
||||||
# Run help coverage check
|
# Run help coverage check
|
||||||
coverage:
|
coverage:
|
||||||
|
|||||||
Reference in New Issue
Block a user