forked from Secure-Compliance-Solutions-LLC/GVM-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
151 lines (126 loc) · 3.89 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
149
150
151
FROM ubuntu:18.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.0" \
openvas_scanner_version="v7.0.0" \
gvmd_version="v9.0.0" \
gsa_version="v9.0.0" \
gvm_tools_version="v2.0.0" \
openvas_smb="v1.0.5" \
open_scanner_protocol_daemon="v2.0.0" \
ospd_openvas="v1.0.0" \
python_gvm_version="v1.3.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 Greenbone Vulnerability Manager (GVMD)
#
RUN 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 /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 Greenbone Security Assistant (GSA)
#
RUN 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 /build && \
rm -rf *
#
# Install Greenbone Vulnerability Management Python Library
#
RUN cd /build && \
wget --no-verbose https://github.com/greenbone/python-gvm/archive/$python_gvm_version.tar.gz && \
tar -zxf $python_gvm_version.tar.gz && \
cd /build/*/ && \
python3 setup.py 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 *
#
# Install GVM-Tools
#
RUN cd /build && \
wget --no-verbose https://github.com/greenbone/gvm-tools/archive/$gvm_tools_version.tar.gz && \
tar -zxf $gvm_tools_version.tar.gz && \
cd /build/*/ && \
python3 setup.py install && \
echo "/usr/local/lib" > /etc/ld.so.conf.d/openvas.conf && ldconfig && cd / && rm -rf /build
COPY scripts/* /
CMD '/start.sh'