This commit is contained in:
maurice
2025-10-31 12:31:04 +01:00
parent 8be0e326ca
commit baad26211e
2 changed files with 36 additions and 3 deletions

11
devc.sh
View File

@@ -36,9 +36,6 @@ default_args() {
# restarts. Use copy to keep the files from the image.
arg "-v $name:/home/user:copy"
# Mount dev folder
arg "-v $HOME/dev:/home/user/dev"
# If there is custom configuration for the container, load
# it here.
config_file="$(dirname "$(realpath "$0")")/containers/$name/config.sh"
@@ -63,6 +60,14 @@ param_args() {
-net) # Enable network dev-<container name>
arg "--network dev-$name"
;;
-mnt) # Mount directory.
shift
arg "-w /workdir/"
arg "-v $1:/workdir/$([ ! -d "$1" ] && echo $1)"
;;
-mdf) # Mount dev folder
arg "-v $HOME/dev:/home/user/dev"
;;
-x11) # Enable X11 support.
arg "-v /tmp/.X11-unix:/tmp/.X11-unix"
arg "-v $XAUTHORITY:/run/user/1000/.Xauthority:ro"