lol kernel

This commit is contained in:
Victor Vobis 2025-02-12 21:42:57 +01:00
parent 33f9ad12bb
commit d63aa9b0c4
4 changed files with 36 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
/target
/alpine/*

View File

@ -5,24 +5,34 @@ services:
context: ./minishell
dockerfile: Dockerfile
cap_drop:
- ALL
- NET_ADMIN
# cap_drop:
# - ALL
cap_add:
- NET_ADMIN
- CHOWN
- SETGID
- DAC_OVERRIDE
# - FSETID
- SETUID
volumes:
- /home/vvobis/sgoinfre/git/personal/website/minishell/alpine/alpine-custom.iso:/boot.iso
# Prevents gaining new privileges
devices:
- /dev/kvm
- /dev/net/tun
security_opt:
- no-new-privileges
networks:
- website_net
environment:
DISK_SIZE: "1GB"
RAM_SIZE: "500MB"
# networks:
# - website_net
ports:
- "127.0.0.1:7681:7681"
- "8006:8006"
networks:
website_net:

16
run.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
# Compile the minishell project
make -C minishell/minishell_src
# stop containers if running
docker compose down -v
# remove volumes
docker volume prune -f
docker image rm website-minishell -f
# start the containers
docker compose up

4
sources.txt Normal file
View File

@ -0,0 +1,4 @@
# Website Creation sources
# Compile the kernel
- https://itsfoss.com/compile-linux-kernel/