Skip to content

Commit a4e0378

Browse files
committedOct 28, 2020
Initial commit
0 parents  commit a4e0378

File tree

98 files changed

+17575
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+17575
-0
lines changed
 

‎.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

‎Dockerfile

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# MÉTADONNÉES DE L'IMAGE
2+
FROM debian:stable-slim
3+
LABEL maintainer="Antoine GUYON"
4+
5+
6+
# VARIABLES TEMPORAIRES
7+
ARG APT_FLAGS="-q -y"
8+
ARG DOCUMENTROOT="/var/www/html"
9+
10+
11+
12+
# --------------- DÉBUT COUCHE APACHE ---------------
13+
RUN apt-get update -y && \
14+
apt-get install ${APT_FLAGS} apache2
15+
# --------------- FIN COUCHE APACHE -----------------
16+
17+
18+
19+
# --------------- DÉBUT COUCHE PHP ------------------
20+
RUN apt-get install ${APT_FLAGS} \
21+
php-mysql \
22+
php && \
23+
rm -f ${DOCUMENTROOT}/index.html && \
24+
apt-get autoclean -y
25+
# --------------- FIN COUCHE PHP --------------------
26+
27+
28+
29+
# ------------- CONFIGURATION RSYSLOG ---------------
30+
RUN apt-get install ${APT_FLAGS} rsyslog && \
31+
mkdir -p /var/log/net/ && touch /var/log/net/syslog.log && ln -s /var/log/net/syslog.log ${DOCUMENTROOT}
32+
COPY conf/rsyslog.conf /etc/rsyslog.conf
33+
# ----------- FIN CONFIGURATION RSYSLOG -------------
34+
35+
36+
37+
# --------------- CONFIGURATION PML -----------------
38+
COPY src/ ${DOCUMENTROOT}
39+
COPY conf/config.user.php ${DOCUMENTROOT}
40+
COPY conf/create-user.php ${DOCUMENTROOT}
41+
# ------------- FIN CONFIGURATION PML ---------------
42+
43+
44+
45+
# --------------- SCRIPT STARTUP -----------------
46+
COPY run.sh /
47+
# ------------- FIN SCRIPT STARTUP ---------------
48+
49+
# OUVERTURE DU PORT HTTP
50+
EXPOSE 80 514
51+
52+
#CREATION VOLUME LOGs
53+
VOLUME [ "/var/log/net/" ]
54+
55+
# RÉPERTOIRE DE TRAVAIL
56+
WORKDIR ${DOCUMENTROOT}
57+
58+
59+
# EXECUTION SCRIPT ET DÉMARRAGE DES SERVICES LORS DE L'EXÉCUTION DE L'IMAGE
60+
CMD ["/run.sh"]

0 commit comments

Comments
 (0)