From 27e5f0445a8e75b347ed54b4185f4419ecc84ffb Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Sat, 19 Oct 2019 22:49:58 +0200 Subject: [PATCH] Shortcuts to source when working on ssh-reg Just source the file and you get the aliases for dev_run, dev_stop(affects containers) and dev_build which rebuilds the ssh-reg image --- private/scripts/shortcuts.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 private/scripts/shortcuts.sh diff --git a/private/scripts/shortcuts.sh b/private/scripts/shortcuts.sh new file mode 100644 index 0000000..2076bef --- /dev/null +++ b/private/scripts/shortcuts.sh @@ -0,0 +1,4 @@ +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_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'"