17 lines
543 B
YAML
17 lines
543 B
YAML
# 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"
|