diff --git a/docker-compose.yaml b/docker-compose.yaml index f40afa7aab5ee62291e3a1d8bb871ce405ea5402..a44ced79922f2cb196866de4baef06b1fb097e7d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,12 +1,22 @@ services: website: - build: . + build: + context: . + dockerfile: web.Dockerfile ports: - 8080:8080 networks: repo-network: ipv4_address: 172.20.0.10 + vuln_machine: + build: + context: . + dockerfile: machine.Dockerfile + networks: + repo-network: + ipv4_address: 172.20.0.11 + networks: repo-network: driver: bridge diff --git a/machine.Dockerfile b/machine.Dockerfile index ca370d7e111a621d1f77216d0391fbd9276ea3fb..41e9c7a3a31a436d6e0bf5c308385d7e9efeb39e 100644 --- a/machine.Dockerfile +++ b/machine.Dockerfile @@ -3,11 +3,16 @@ FROM archlinux:latest RUN pacman-key --init RUN pacman -Sy +# RUN pacman -S ... --noconfirm + RUN cat <<EOF >> /etc/pacman.conf [mypkgs] SigLevel = Optional TrustAll -Server = http://localhost/mypkgs +Server = http://172.20.0.10/mypkgs EOF -CMD /bin/bash +COPY ./simulate.sh . +RUN chmod +x simulate.sh + +CMD ./simulate.sh