-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
35 lines (29 loc) · 1.4 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
VERSION = 0.1.0
PROJECT_ID = kubebot-163519
TOOLLIST = enumall gitallsecrets gitsecrets gobuster nmap subbrute sublist3r trufflehog wfuzz
UTILSLIST = checkfile converttobq wfuzzbasicauthbrute
CREDS_FILEPATH = /Users/redteam/Downloads/personal-creds.json
TOPIC = tool_topic
SUBSCRIPTION = tool_sub
WFUZZ_DATASET = wfuzzds
REPOSUPERVISOR_DATASET = reposupervisords
WFUZZ_TABLE = wfuzz_tomcat_test
REPOSUPERVISOR_TABLE = reposupervisor_test
GITTOKEN = <enter your github token>
.PHONY: all build
all: build
build: setup images deployments
setup:
go run setup-scripts/main.go -project $(PROJECT_ID) -gac $(CREDS_FILEPATH) -wfdataset $(WFUZZ_DATASET) -wftable $(WFUZZ_TABLE) -rsdataset $(REPOSUPERVISOR_DATASET) -rstable $(REPOSUPERVISOR_TABLE) -topic $(TOPIC) -subscription $(SUBSCRIPTION)
images:
docker build -t us.gcr.io/$(PROJECT_ID)/api/api_kubebot:$(VERSION) api/
docker build -t us.gcr.io/$(PROJECT_ID)/api/api_subscriptionworker:$(VERSION) subscriptionworker/
for toolname in $(TOOLLIST) ; do \
docker build -t us.gcr.io/$(PROJECT_ID)/tools/tools_$$toolname:$(VERSION) tools/$$toolname/ ; \
done
for utilname in $(UTILSLIST) ; do \
docker build -t us.gcr.io/$(PROJECT_ID)/utils/utils_$$utilname:$(VERSION) utils/$$utilname/ ; \
done
deployments:
kubectl apply -f config/kubebot-config/00-namespace.yaml
kubectl create secret generic googlesecret --from-file=$(CREDS_FILEPATH) --namespace=kubebot-server