Add another docker function to use tox

This commit is contained in:
drymer 2018-07-22 22:52:06 +02:00
parent 2c9273bc6c
commit b53af31cc9
1 changed files with 16 additions and 9 deletions

View File

@ -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 "$@"
}