Fix :)
This commit is contained in:
11
devc.sh
11
devc.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user