From 078701117d2625e99e82eda12ded556b86607877 Mon Sep 17 00:00:00 2001 From: Namonay Date: Thu, 11 Sep 2025 14:23:07 +0200 Subject: [PATCH] add: docker --- docker-compose.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..fc59cf9 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,16 @@ +# A docker file to test the project independently of your machine +# Walkthrough : +# run the "docker compose up -d command" +# Wait for the machine to start and apt to install the dependancies +# run "docker exec -it ft_ping bash" to get a shell in the container +# The project is located at /ft_ping on the machine +services: + vm: + container_name: ft_ping + image: debian:bullseye + tty: true + stdin_open: true + volumes: + - ./:/ft_ping + command: + bash -c "apt update && apt install make inetutils-ping clang -y && bash"