.dockerfunc: remove ansible
This commit is contained in:
parent
cf9dc39933
commit
19bd891d79
26
.dockerfunc
26
.dockerfunc
|
@ -71,20 +71,20 @@ android-studio() {
|
|||
#exit 0;
|
||||
}
|
||||
|
||||
ansible() {
|
||||
local args=$@
|
||||
local cur_dir=$(pwd)
|
||||
local targetmount=$(basename $cur_dir)
|
||||
# ansible() {
|
||||
# local args=$@
|
||||
# local cur_dir=$(pwd)
|
||||
# local targetmount=$(basename $cur_dir)
|
||||
|
||||
docker run -it \
|
||||
--name ansible_$targetmount \
|
||||
-v ${cur_dir}:/src/$targetmount \
|
||||
-w /src/$targetmount \
|
||||
-v $HOME/.ssh/:/tmp/.ssh:ro \
|
||||
-v /etc/hosts:/etc/hosts:ro \
|
||||
${DOCKER_REPO_PREFIX}/ansible:alpine \
|
||||
bash -c "$args"
|
||||
}
|
||||
# docker run -it \
|
||||
# --name ansible_$targetmount \
|
||||
# -v ${cur_dir}:/src/$targetmount \
|
||||
# -w /src/$targetmount \
|
||||
# -v $HOME/.ssh/:/tmp/.ssh:ro \
|
||||
# -v /etc/hosts:/etc/hosts:ro \
|
||||
# ${DOCKER_REPO_PREFIX}/ansible:alpine \
|
||||
# bash -c "$args"
|
||||
# }
|
||||
|
||||
ant() {
|
||||
local args=$@
|
||||
|
|
Loading…
Reference in New Issue