-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 802 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Makefile targets for building and testing container image with Docker, Dive, Goss and Snyk
# full ci workflow
ci: install test
# install testing dependencies
install: install-preflight install-goss install-dive install-snyk
test: build-image test-goss test-dive test-snyk
# build image, tagged as `test`
build-image:
docker build -t test .
# installation scripts
install-goss:
./scripts/install-goss.sh
install-dive:
./scripts/install-dive.sh
install-snyk:
./scripts/install-snyk.sh
install-preflight:
./scripts/install-preflight.sh
# commands to run tests and scans on `test` image
test-goss:
GOSS_PATH=$$PWD/goss ./dgoss run test
test-dive:
CI=true dive test
test-snyk:
./snyk container test test --file=Dockerfile --severity-threshold=high
test-docker-scan:
docker scan test