lol kernel
This commit is contained in:
parent
33f9ad12bb
commit
d63aa9b0c4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
/target
|
/target
|
||||||
/alpine/*
|
|
||||||
|
|||||||
22
compose.yaml
22
compose.yaml
@ -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
16
run.sh
Executable 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
4
sources.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Website Creation sources
|
||||||
|
|
||||||
|
# Compile the kernel
|
||||||
|
- https://itsfoss.com/compile-linux-kernel/
|
||||||
Loading…
x
Reference in New Issue
Block a user