mirror of
https://github.com/Oxbian/SIDPS.git
synced 2025-07-07 04:14:46 +02:00
feat: final working demo Dockerfiles
This commit is contained in:
@ -2,8 +2,9 @@ FROM python:alpine3.20
|
||||
|
||||
# Installation des paquets nécessaires pour scapy
|
||||
RUN apk -U upgrade && \
|
||||
apk add --no-cache libpcap libpcap-dev gcc musl-dev libffi-dev nmap iproute2
|
||||
RUN pip install scapy
|
||||
apk add --no-cache nmap iproute2
|
||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||
RUN apk -U add --no-cache hping3
|
||||
|
||||
COPY Demo/Dockerfiles/attaquant-entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
@ -1,15 +1,9 @@
|
||||
FROM python:alpine3.20
|
||||
FROM httpd:alpine
|
||||
|
||||
# Installation des paquets nécessaires pour scapy
|
||||
RUN apk -U upgrade && \
|
||||
apk add --no-cache libpcap libpcap-dev gcc musl-dev libffi-dev iproute2
|
||||
RUN pip install scapy
|
||||
# Installation des paquets nécessaire pour le routage
|
||||
RUN apk -U upgrade && apk add --no-cache iproute2
|
||||
|
||||
COPY Demo/Dockerfiles/cible-entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
# Copier le script de détection d'attaques
|
||||
#COPY cible.py /cible.py
|
||||
|
||||
# Lancer le script de détection
|
||||
#CMD ["python", "/cible.py"]
|
||||
CMD ["httpd-foreground"]
|
||||
|
@ -16,7 +16,7 @@ WORKDIR /app
|
||||
COPY idps /app/idps
|
||||
|
||||
# Copie du fichier de configuration
|
||||
COPY config.json /app/config.json
|
||||
COPY Demo/config/config-idps.json /app/config.json
|
||||
|
||||
# Utiliser le script comme point d'entrée
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
@ -12,7 +12,7 @@ WORKDIR /app
|
||||
COPY idps /app/ids
|
||||
|
||||
# Copie du fichier de configuration
|
||||
COPY config.json /app/config.json
|
||||
COPY Demo/config/config-ids.json /app/config.json
|
||||
|
||||
# Lancer le script de la sonde IDS
|
||||
CMD ["python3", "/app/ids/ids.py"]
|
||||
CMD ["python3", "/app/ids/main.py"]
|
||||
|
Reference in New Issue
Block a user