Dockerfile 1.19 KB
Newer Older
Kilian Low's avatar
Kilian Low committed
1 2 3 4 5 6 7 8 9 10
# The commanded lines should work but unfortunately their is an issue in the .run script as explained in the report

FROM debian:stable
#Install dependencies in non interactive mode to avoid blocking installing when not answering prompt
ENV DEBIAN_FRONTEND noninteractive
VOLUME /source
WORKDIR /source
#COPY files in current folder
COPY csrf.html .
COPY reset.sql .
Kilian Low's avatar
Kilian Low committed
11 12
# Unfortunately this file is too big (44MB) for gitlab so we are using wget instead
#COPY OAE-Linux-x86_64-release_2.1.run .
Kilian Low's avatar
Kilian Low committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

RUN apt-get update && \
    apt-get -y install vim file wget && \
# tar apache2 apache2-utils libapache2-mod-php openssh-client php php-ldap php-mbstring php-mcrypt php-mysql php-snmp php-simplexml nmap zip curl sshpass screen smbclient logrotate libtime-modules-perl ipmitool rrdtool && \
#    installing mysql-server manually to avoid issue
    apt-get -y install mysql-server && \

#    reset mysql password to 'null'
    service mysql stop
CMD ["mysqld_safe", "--skip-grant-tables", "--skip-networking"]
#RUN cat reset.sql | mysql -uroot && \
#    wget http://dl-openaudit.opmantek.com/OAE-Linux-x86_64-release_2.1.run && \
#    chmod +x OAE-Linux-x86_64-release_2.1.run && \
#    ./OAE-Linux-x86_64-release_2.1.run