forked from Secure-Compliance-Solutions-LLC/GVM-Docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
148 lines (123 loc) · 3.66 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
FROM ubuntu:20.04
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="v11.0.1" \
openvas_scanner_version="v7.0.1" \
gvmd_version="v9.0.1" \
gsa_version="v9.0.1" \
gvm_tools_version="2.1.0" \
openvas_smb="v1.0.5" \
open_scanner_protocol_daemon="v2.0.1" \
ospd_openvas="v1.0.1" \
python_gvm_version="1.6.0"
#
# install libraries module for the Greenbone Vulnerability Management Solution
#
RUN mkdir /build && \
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 / && \
rm -rf /build
#
# install smb module for the OpenVAS Scanner
#
RUN mkdir /build && \
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 / && \
rm -rf /build
#
# Install Greenbone Vulnerability Manager (GVMD)
#
RUN mkdir /build && \
cd /build && \
wget --no-verbose https://github.com/greenbone/gvmd/archive/$gvmd_version.tar.gz && \
tar -zxf $gvmd_version.tar.gz && \
cd /build/*/ && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make && \
make install && \
cd / && \
rm -rf /build
#
# Install Open Vulnerability Assessment System (OpenVAS) Scanner of the Greenbone Vulnerability Management (GVM) Solution
#
RUN mkdir /build && \
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 / && \
rm -rf /build
#
# Install Greenbone Security Assistant (GSA)
#
RUN mkdir /build && \
cd /build && \
wget --no-verbose https://github.com/greenbone/gsa/archive/$gsa_version.tar.gz && \
tar -zxf $gsa_version.tar.gz && \
cd /build/*/ && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make && \
make install && \
cd / && \
rm -rf /build
#
# Install Greenbone Vulnerability Management Python Library
#
RUN pip3 install python-gvm==$python_gvm_version
#
# Install Open Scanner Protocol daemon (OSPd)
#
RUN mkdir /build && \
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 / && \
rm -rf /build
#
# Install Open Scanner Protocol for OpenVAS
#
RUN mkdir /build && \
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 / && \
rm -rf /build
#
# Install GVM-Tools
#
RUN pip3 install gvm-tools==$gvm_tools_version && \
echo "/usr/local/lib" > /etc/ld.so.conf.d/openvas.conf && ldconfig && cd / && rm -rf /build
COPY sshd_config /sshd_config
COPY scripts/* /
CMD '/start.sh'