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 /target
/alpine/*

View File

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