-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
89 lines (70 loc) · 3.16 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
md-update-deps:
cd docGen && go get github.com/aquasecurity/defsec \
&& go mod tidy
md-build:
cd docGen && go build -o ../generator .
md-test:
cd docGen && go test -v ./...
md-clean:
rm -f ./generator
md-clone-all:
# git clone [email protected]:aquasecurity/avd.git avd-repo/
git clone [email protected]:aquasecurity/vuln-list.git avd-repo/vuln-list
git clone [email protected]:aquasecurity/vuln-list-nvd.git avd-repo/vuln-list-nvd
git clone [email protected]:aquasecurity/vuln-list-redhat.git avd-repo/vuln-list-redhat
git clone [email protected]:aquasecurity/kube-hunter.git avd-repo/kube-hunter-repo
git clone [email protected]:aquasecurity/kube-bench.git avd-repo/kube-bench-repo
git clone [email protected]:aquasecurity/chain-bench.git avd-repo/chain-bench-repo
git clone [email protected]:aquasecurity/cloud-security-remediation-guides.git avd-repo/remediations-repo
git clone [email protected]:aquasecurity/tracee.git avd-repo/tracee-repo
git clone [email protected]:aquasecurity/trivy-policies.git avd-repo/trivy-policies-repo
git clone [email protected]:aquasecurity/cloudsploit.git avd-repo/cloudsploit-repo
update-all-repos:
cd avd-repo/vuln-list && git pull
cd avd-repo/vuln-list-nvd && git pull
cd avd-repo/vuln-list-redhat && git pull
cd avd-repo/kube-hunter-repo && git pull
cd avd-repo/kube-bench-repo && git pull
cd avd-repo/chain-bench-repo && git pull
cd avd-repo/remediations-repo && git pull
cd avd-repo/tracee-repo && git pull
cd avd-repo/trivy-policies-repo && git pull
cd avd-repo/cloudsploit-repo && git pull
remove-all-repos:
rm -rf avd-repo/vuln-list
rm -rf avd-repo/vuln-list-nvd
rm -rf avd-repo/vuln-list-redhat
rm -rf avd-repo/kube-hunter-repo
rm -rf avd-repo/kube-bench-repo
rm -rf avd-repo/chain-bench-repo
rm -rf avd-repo/tracee-repo
rm -rf avd-repo/trivy-policies-repo
rm -rf avd-repo/cloudsploit-repo
sync-all:
rsync -av ./ avd-repo/ --exclude=.idea --exclude=go.mod --exclude=go.sum --exclude=nginx.conf --exclude=main.go --exclude=main_test.go --exclude=README.md --exclude=avd-repo --exclude=.git --exclude=.gitignore --exclude=.github --exclude=content --exclude=docs --exclude=Makefile --exclude=goldens
md-generate:
cd avd-repo && ./generator
nginx-start:
-cd avd-repo/docs && nginx -p . -c ../../nginx.conf
nginx-stop:
-cd avd-repo/docs && nginx -s stop -p . -c ../../nginx.conf
nginx-restart:
make nginx-stop nginx-start
hugo-devel:
hugo server -D --debug
hugo-clean:
cd avd-repo && rm -rf docs
hugo-generate: hugo-clean
cd avd-repo && ./ci/nvd_pages_build.sh
echo "avd.aquasec.com" > avd-repo/docs/CNAME
simple-host:
cd avd-repo && python3 -m http.server
copy-assets:
cp -R avd-repo/remediations-repo/resources avd-repo/docs/resources
touch avd-repo/docs/.nojekyll
build-all-no-clone: md-clean md-build sync-all md-generate hugo-generate copy-assets nginx-restart
echo "Build Done, navigate to http://localhost:9011/ to browse"
build-all: md-clean md-build md-clone-all sync-all md-generate hugo-generate copy-assets nginx-restart
echo "Build Done, navigate to http://localhost:9011/ to browse"
compile-theme-sass:
cd themes/aquablank/static/sass && sass avdblank.scss:../css/avdblank.css && sass avdblank.scss:../css/avdblank.min.css --style compressed