CI dns image
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

main
Mathieu GROUSSEAU 1 month ago
parent 4ad208075c
commit 1cd26cf6d5

@ -1,4 +1,5 @@
[![Build Status](https://codefirst.iut.uca.fr/api/badges/victor.soulier/PM2-TP-DNS-POISONING/status.svg?ref=refs/heads/main)](https://codefirst.iut.uca.fr/victor.soulier/PM2-TP-DNS-POISONING)
# PM2-TP-DNS-POISONING
Assets pour la réalisation du tp dns poisoning.
Assets pour la réalisation du tp dns poisoning.

@ -0,0 +1,15 @@
kind: pipeline
type: docker
steps:
- name: build-and-push
image: plugins/docker
settings:
dockerfile: dns/Dockerfile
context: dns
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/victor.soulier/pm2-tp-dns-poisoning
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD

@ -0,0 +1,12 @@
FROM debian:bookworm AS build
RUN apt update
RUN apt install --yes gcc make
WORKDIR /src
ADD https://thekelleys.org.uk/dnsmasq/archive/dnsmasq-2.42.tar.gz dnsmasq-2.42.tar.gz
RUN tar -xf dnsmasq-2.42.tar.gz
WORKDIR /src/dnsmasq-2.42
RUN make install PREFIX=/build
FROM debian:bookworm
COPY --from=build /build/ /usr/local
ENTRYPOINT ["dnsmasq", "-d"]