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

RUN apt-get update && \
    apt-get -y install vim file wget && \
#    installing mysql-server manually to avoid issue
    apt-get -y install mysql-server && \
    service mysql stop
Kilian Low's avatar
Kilian Low committed
19
CMD ["mysqld_safe", "--skip-grant-tables", "--skip-syslog", "--skip-networking"]
Kilian Low's avatar
Kilian Low committed
20
#RUN cat reset.sql | mysql -uroot && \
Kilian Low's avatar
Kilian Low committed
21 22
#    mysqladmin shutdown && \
#    service mysql start && \
Kilian Low's avatar
Kilian Low committed
23 24 25 26
#    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