forked from Secure-Compliance-Solutions-LLC/GVM-Docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalt.Dockerfile
220 lines (196 loc) · 5.65 KB
/
alt.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=C.UTF-8
RUN apt-get -y update &&\
apt-get install -y \
bison \
build-essential \
ca-certificates \
cmake \
curl \
gcc \
gcc-mingw-w64 \
geoip-database \
gnupg \
gnutls-bin \
graphviz \
heimdal-dev \
ike-scan \
libgcrypt20-dev \
libglib2.0-dev \
libgnutls28-dev \
libgpgme11-dev \
libgpgme-dev
libhiredis-dev \
libical-dev \
libksba-dev \
libldap2-dev \
libmicrohttpd-dev \
libnet-snmp-perl \
libpcap-dev \
libpopt-dev \
libsnmp-dev \
libssh-gcrypt-dev \
libxml2-dev \
net-tools \
nmap \
nsis \
openssh-client \
openssh-server \
perl-base \
pkg-config \
postgresql-12 \
postgresql-server-dev-12 \
python3-defusedxml \
python3-dialog \
python3-lxml \
python3-paramiko \
python3-pip \
python3-polib \
python3-psutil \
python3-setuptools \
redis-server \
redis-tools \
rsync \
sendmail \
smbclient \
texlive-fonts-recommended \
texlive-latex-extra \
uuid-dev \
wapiti \
wget \
whiptail \
xml-twig-tools \
xsltproc
echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt-get update
echo "Install Node.js" &&\
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install nodejs -yq --no-install-recommends
apt-get update
echo "Install Yarn" &&\
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install yarn -yq --no-install-recommends
apt-get update
rm -rf /var/lib/apt/lists/*
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'