forked from Atomicorp/openvas-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (33 loc) · 1.22 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
FROM centos:latest
MAINTAINER Support <[email protected]>
#VOLUME ["/var/lib/openvas"]
ADD run.sh /run.sh
ADD config/gsad /etc/sysconfig/gsad
ADD config/redis.conf /etc/redis.conf
ADD config/texlive.repo /etc/yum.repos.d/texlive.repo
RUN yum -y install wget
RUN cd /root; NON_INT=1 wget -q -O - https://updates.atomicorp.com/installers/atomic |sh
RUN \
yum clean all && \
yum -y update && \
yum -y install alien bzip2 useradd net-tools openssh texlive-changepage texlive-titlesec texlive-collection-latexextra
# PDF fixes
RUN mkdir -p /usr/share/texlive/texmf-local/tex/latex/comment
ADD config/comment.sty /usr/share/texlive/texmf-local/tex/latex/comment/comment.sty
RUN texhash
# Scanners
RUN yum -y install openvas OSPd-nmap OSPd
# Arachni
RUN wget https://github.com/Arachni/arachni/releases/download/v1.5.1/arachni-1.5.1-0.5.12-linux-x86_64.tar.gz && \
tar xvf arachni-1.5.1-0.5.12-linux-x86_64.tar.gz && \
mv arachni-1.5.1-0.5.12 /opt/arachni && \
ln -s /opt/arachni/bin/* /usr/local/bin/ && \
rm -rf arachni*
RUN \
/usr/sbin/greenbone-nvt-sync && \
/usr/sbin/greenbone-certdata-sync && \
/usr/sbin/greenbone-scapdata-sync && \
BUILD=true /run.sh
RUN rm -rf /var/cache/yum/*
CMD /run.sh
EXPOSE 443