forked from mikesplain/openvas-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 1.04 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
SHELL := /bin/bash
default: containers
test: containers testcontainers
containers:
docker build -t mikesplain/openvas_base openvas_base
docker build -t mikesplain/openvas:full openvas_full
testcontainers:
sed -i -e 's/TAG/openvas_base/g' ./test/Dockerfile
docker build -t mikesplain/openvas:testbase ./test
sed -i -e 's/openvas_base/openvas:full/g' ./test/Dockerfile
docker build -t mikesplain/openvas:testfull ./test
sed -i -e 's/full/TAG/g' ./test/Dockerfile
testbase:
sed -i -e 's/TAG/openvas_base/g' ./test/Dockerfile
docker build -t mikesplain/openvas:testbase ./test
sed -i -e 's/openvas_base/TAG/g' ./test/Dockerfile
testfull:
docker build -t mikesplain/openvas:full openvas_full
git checkout openvas_full/Dockerfile
sed -i -e 's/TAG/openvas:full/g' ./test/Dockerfile
docker build -t mikesplain/openvas:testfull ./test
clean: cleanup
cleanup:
sed -i -e 's/openvas_base/TAG/g' ./test/Dockerfile
sed -i -e 's/openvas:full/TAG/g' ./test/Dockerfile
rm -rf ./test/Dockerfile-e
rm -rf openvas_full/Dockerfile~
rm -rf openvas_full/openvas