-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (33 loc) · 897 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
41
42
# Makefile
SOURCE = /tmp/venv.kube-cd
all: venv trestle-init kube-cd
#####
venv:
echo "=> venv"
if [ ! -d $(SOURCE) ]; then \
echo "=> create python virtual environment"; \
python -m venv $(SOURCE); \
source $(SOURCE)/bin/activate; \
echo "=> install prereqs"; \
python -m pip install -q --upgrade pip setuptools; \
python -m pip install -q git+https://github.com/IBM/compliance-trestle.git@develop; \
fi
trestle-init:
echo "=> trestle-init"
source $(SOURCE)/bin/activate; \
trestle init
kube-cd:
echo "=> kube-cd"
source $(SOURCE)/bin/activate; \
trestle task csv-to-oscal-cd -c data/csv-to-oscal-cd.config
help:
echo "=> cd-csv-to-json"
source $(SOURCE)/bin/activate; \
trestle task -l
help-info:
echo "=> cd-csv-to-json"
source $(SOURCE)/bin/activate; \
trestle task csv-to-oscal-cd -i -c data/csv-to-oscal-cd.config
clean:
echo "=> clean"
rm -fr $(SOURCE)