forked from Secure-Compliance-Solutions-LLC/OpenVAS-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
94 lines (76 loc) · 2.43 KB
/
Dockerfile
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
90
91
92
93
94
FROM ubuntu:20.10
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=C.UTF-8
COPY install-pkgs.sh /install-pkgs.sh
RUN bash /install-pkgs.sh
ENV gvm_libs_version="v21.4.0" \
openvas_scanner_version="v21.4.0" \
openvas_smb="v21.4.0" \
open_scanner_protocol_daemon="v21.4.0" \
ospd_openvas="v21.4.0"
RUN echo "Starting Build..." && mkdir /build
#
# install libraries module for the Greenbone Vulnerability Management Solution
#
RUN cd /build && \
wget --no-verbose https://github.com/greenbone/gvm-libs/archive/$gvm_libs_version.tar.gz && \
tar -zxf $gvm_libs_version.tar.gz && \
cd /build/*/ && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make && \
make install && \
cd /build && \
rm -rf *
#
# install smb module for the OpenVAS Scanner
#
RUN cd /build && \
wget --no-verbose https://github.com/greenbone/openvas-smb/archive/$openvas_smb.tar.gz && \
tar -zxf $openvas_smb.tar.gz && \
cd /build/*/ && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make && \
make install && \
cd /build && \
rm -rf *
#
# Install Open Vulnerability Assessment System (OpenVAS) Scanner of the Greenbone Vulnerability Management (GVM) Solution
#
RUN cd /build && \
wget --no-verbose https://github.com/greenbone/openvas-scanner/archive/$openvas_scanner_version.tar.gz && \
tar -zxf $openvas_scanner_version.tar.gz && \
cd /build/*/ && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make && \
make install && \
cd /build && \
rm -rf *
#
# Install Open Scanner Protocol daemon (OSPd)
#
RUN cd /build && \
wget --no-verbose https://github.com/greenbone/ospd/archive/$open_scanner_protocol_daemon.tar.gz && \
tar -zxf $open_scanner_protocol_daemon.tar.gz && \
cd /build/*/ && \
python3 setup.py install && \
cd /build && \
rm -rf *
#
# Install Open Scanner Protocol for OpenVAS
#
RUN cd /build && \
wget --no-verbose https://github.com/greenbone/ospd-openvas/archive/$ospd_openvas.tar.gz && \
tar -zxf $ospd_openvas.tar.gz && \
cd /build/*/ && \
python3 setup.py install && \
cd /build && \
rm -rf *
RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/openvas.conf && ldconfig && cd / && rm -rf /build
COPY scripts/* /
ENTRYPOINT ["/start.sh"]