From 786b652b2189cfb640cde305df6a233c3a837a0b Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Sun, 20 Oct 2019 15:37:03 +0200 Subject: [PATCH] update dev environment with disable possiblities --- private/scripts/disable.sh | 5 +++++ private/scripts/shortcuts.sh | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 private/scripts/disable.sh 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"