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"