From b53af31cc9cec96c5e0d36a74ada2856e55f369e Mon Sep 17 00:00:00 2001 From: drymer Date: Sun, 22 Jul 2018 22:52:06 +0200 Subject: [PATCH] Add another docker function to use tox --- roles/shell-dotfiles/files/functions | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/roles/shell-dotfiles/files/functions b/roles/shell-dotfiles/files/functions index 21f9462..f022a77 100644 --- a/roles/shell-dotfiles/files/functions +++ b/roles/shell-dotfiles/files/functions @@ -108,15 +108,6 @@ function git_updated() { done } -# Docker presentaciones -function reveal () { - function async () - { - sleep 3 && xdg-open http:localhost:8000 - } - async &! - docker run -ti --name revealjs --rm -v `pwd`:/revealjs/files/ -p 8000:8000 revealjs -} # Autocompletados ## kubectl @@ -311,3 +302,19 @@ function kube_get_deploy_pods(){ fi ku get pods | grep "$deploy" | awk '{print $1}' } + +# Docker +## Reveal +function reveal () { + function async () + { + sleep 3 && xdg-open http:localhost:8000 + } + async &! + docker run -ti --name revealjs --rm -v `pwd`:/revealjs/files/ -p 8000:8000 revealjs +} + +## Tox +function docker-tox () { + docker run -ti -v `pwd`:/tox registry.daemons.it/tox:latest tox "$@" +}