Compare commits

..

No commits in common. "1449f852c0e31d5d57805034609f32370e39587c" and "9c30479fcf443522fcb8b1108cdc569b3ca1343f" have entirely different histories.

3 changed files with 5 additions and 52 deletions

View file

@ -1,31 +0,0 @@
FROM debian:latest
RUN apt-get update && \
apt-get install -y --force-yes \
build-essential \
wget \
tar \
make \
autoconf \
automake \
libtool \
&& \
rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN wget https://ftp.gnu.org/gnu/inetutils/inetutils-2.0.tar.gz && \
tar -xzf inetutils-2.0.tar.gz && \
cd inetutils-2.0 && \
./configure --disable-logger --disable-syslogd --disable-whois --disable-rcp --disable-rlogin --disable-rsh --disable-talk --disable-telnet --disable-tftp --disable-uucpd --enable-ping && \
make && \
make install && \
ldconfig
RUN ping -V
RUN useradd -m -s /bin/bash devuser && \
echo "devuser:devuser" | chpasswd
WORKDIR /home/devuser/ft_ping
USER devuser
CMD ["/bin/bash"]

View file

@ -6,7 +6,7 @@
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2026/03/24 12:38:38 by rparodi ### ########.fr #
# Updated: 2026/03/23 14:53:55 by rparodi ### ########.fr #
# #
# **************************************************************************** #
@ -23,8 +23,7 @@ RM = rm -rf
CFLAGS = -Werror -Wall -Wextra
INC_DIR = ./includes \
./parsing/includes
INC_DIR = ./parsing/includes
CPPFLAGS = $(addprefix -I, $(INC_DIR)) -MMD -MP
@ -84,7 +83,7 @@ $(OBJDIRNAME)/%.o: %.c
@printf '$(GREY) Compiling $(END)$(GREEN)$<$(END)\n'
@$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
bonus: CPPFLAGS += -D BONUS=1
bonus: CFLAGS += -D BONUS=1
bonus: re
# Header
@ -100,7 +99,7 @@ header:
@printf '$(GOLD) ****** ******* ****** $(END)\n'
@printf '$(GOLD) ****** $(END)\n'
@printf '$(GOLD) ****** $(END)\n'
@printf '$(GREY) Made by rparodi$(END)\n\n'
@printf '$(GREY) Made by glaruell & rparodi$(END)\n\n'
# Footer
footer:
@ -118,14 +117,9 @@ footer:
@printf ' $(GREY)The compilation is$(END) $(GOLD)finish$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n'
debug: CPPFLAGS += -D DEBUG=1 -g
# debug: CFLAGS += -fsanitize=address
debug: re
d: debug
b: bonus
db: CPPFLAGS += -D BONUS=1 -D DEBUG=1 -g
db: debug
tmux:
@tmux new-session -d -s $(NAME)
@tmux send-keys -t $(NAME):0 'vim' C-m

View file

@ -1,10 +0,0 @@
services:
ft_ping:
build: .
container_name: ft_ping_dev
cap_add:
- NET_RAW
- NET_ADMIN
volumes:
- .:/home/devuser/ft_ping
tty: true