From b096bd7ee330fd5157fb6f24ad2d2b81d38f1c6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Horv=C3=A1t?= <horvatda@proton.me>
Date: Wed, 12 Mar 2025 11:54:52 +0100
Subject: [PATCH] pacman process

---
 docker-compose.yaml | 12 +++++++++++-
 machine.Dockerfile  |  9 +++++++--
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/docker-compose.yaml b/docker-compose.yaml
index f40afa7..a44ced7 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 ca370d7..41e9c7a 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
-- 
GitLab