This commit is contained in:
victor 2025-02-12 09:51:38 +01:00
parent c9aaa698d1
commit 33f9ad12bb
4 changed files with 31 additions and 18 deletions

30
compose.yaml Normal file
View File

@ -0,0 +1,30 @@
services:
minishell:
container_name: "minishell"
build:
context: ./minishell
dockerfile: Dockerfile
cap_drop:
- ALL
- NET_ADMIN
cap_add:
- CHOWN
- SETGID
- DAC_OVERRIDE
# - FSETID
- SETUID
# Prevents gaining new privileges
security_opt:
- no-new-privileges
networks:
- website_net
ports:
- "127.0.0.1:7681:7681"
networks:
website_net:
external: false
internal: true

View File

@ -1,7 +0,0 @@
#!/bin/bash
# Download alpine iso
wget https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/x86_64/alpine-standard-3.19.0-x86_64.iso -O alpine/alpine.iso
# Create qemu volume
qemu-img create -f qcow2 alpine.qcow2 2

1
minishell Submodule

@ -0,0 +1 @@
Subproject commit 4bb666d9215affc79c6c73967174bf1366093e91

11
run.sh
View File

@ -1,11 +0,0 @@
#!/bin/bash
# run qemu vm
qemu-system-x86_64 \
-m 512M \
-hda alpine.qcow2 \
-cdrom alpine.iso \
-boot d \
-net nic -net user \
-vnc :1 \
-monitor telnet:127.0.0.1:5555,server,nowait