Dockerfile 774 Bytes
Newer Older
Kilian Low's avatar
Kilian Low committed
1 2 3 4 5 6 7 8
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
9
COPY install.sh .
Kilian Low's avatar
Kilian Low committed
10 11
# 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
12 13 14

RUN apt-get update && \
    apt-get -y install vim file wget && \
Kilian Low's avatar
Kilian Low committed
15
#   installing mysql-server manually to avoid issue
Kilian Low's avatar
Kilian Low committed
16
    apt-get -y install mysql-server && \
Kilian Low's avatar
Kilian Low committed
17 18 19 20 21
    service mysql stop && \
    chmod +x install.sh && \
    ./install.sh
# The install.sh script has two goals: 1) reset password of the mysql-server 2) download and install Open-AudIT and serve it to a local port
    
Kilian Low's avatar
Kilian Low committed
22