Add another docker function to use tox
This commit is contained in:
parent
2c9273bc6c
commit
b53af31cc9
|
@ -108,15 +108,6 @@ function git_updated() {
|
||||||
done
|
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
|
# Autocompletados
|
||||||
## kubectl
|
## kubectl
|
||||||
|
@ -311,3 +302,19 @@ function kube_get_deploy_pods(){
|
||||||
fi
|
fi
|
||||||
ku get pods | grep "$deploy" | awk '{print $1}'
|
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 "$@"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue