diff --git a/.gitignore b/.gitignore index 4c7f2a3..ea8c4bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ /target -/alpine/* diff --git a/compose.yaml b/compose.yaml index 8df0fa3..6825fb9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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: diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..2745f96 --- /dev/null +++ b/run.sh @@ -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 diff --git a/sources.txt b/sources.txt new file mode 100644 index 0000000..39c87f8 --- /dev/null +++ b/sources.txt @@ -0,0 +1,4 @@ +# Website Creation sources + +# Compile the kernel + - https://itsfoss.com/compile-linux-kernel/