diff --git a/private/scripts/disable.sh b/private/scripts/disable.sh new file mode 100644 index 0000000..1ec7fc8 --- /dev/null +++ b/private/scripts/disable.sh @@ -0,0 +1,5 @@ +unalias dev_build +unalias dev_run +unalias dev_bash +unalias dev_stop +unalias dev_disable diff --git a/private/scripts/shortcuts.sh b/private/scripts/shortcuts.sh index 2076bef..7a3a481 100644 --- a/private/scripts/shortcuts.sh +++ b/private/scripts/shortcuts.sh @@ -1,4 +1,5 @@ alias dev_run="docker container run -l dev-ssh-reg --name dev-ssh-reg --rm -itd -v $PWD/private/:/app/admin ssh-reg" -alias dev_stop="docker container stop $(docker ps -a -q --filter ancestor=ssh-reg --format='{{.ID}}')" +alias dev_stop="docker container stop dev-ssh-reg" alias dev_build="docker build -t ssh-reg:latest --force-rm ." alias dev_bash="docker container exec -it dev-ssh-reg bash -c 'cd /app/admin; exec bash --login -i'" +alias dev_disable="source private/scripts/disable.sh"