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
This commit is contained in:
parent
710ceacd7c
commit
27e5f0445a
1 changed files with 4 additions and 0 deletions
4
private/scripts/shortcuts.sh
Normal file
4
private/scripts/shortcuts.sh
Normal file
|
@ -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'"
|
Loading…
Reference in a new issue