add: docker
This commit is contained in:
16
docker-compose.yaml
Normal file
16
docker-compose.yaml
Normal file
@@ -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"
|
||||||
Reference in New Issue
Block a user