Dockerfile 1.03 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

RUN apt-get update && \
    apt-get -y install vim file wget && \
#    installing mysql-server manually to avoid issue
    apt-get -y install mysql-server && \
Kilian Low's avatar
Kilian Low committed
18 19 20 21
    service mysql stop 
# In a second terminal session:
#    mysqld_safe --skip-grant-tables --skip-syslog --skip-networking && \
#    cat reset.sql | mysql -u root && \
Kilian Low's avatar
Kilian Low committed
22 23
#    mysqladmin shutdown && \
#    service mysql start && \
Kilian Low's avatar
Kilian Low committed
24 25 26 27
#    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