add ant and java
This commit is contained in:
parent
96ea07159d
commit
3861474710
31
.dockerfunc
31
.dockerfunc
|
@ -69,6 +69,18 @@ android-studio() {
|
|||
#exit 0;
|
||||
}
|
||||
|
||||
ant() {
|
||||
local args=$@
|
||||
local cur_dir=$(pwd)
|
||||
local targetmount=$(basename $cur_dir)
|
||||
|
||||
docker run -it --rm \
|
||||
-v $(pwd):/src/$targetmount \
|
||||
-w /src/$targetmount \
|
||||
fschl/ant \
|
||||
"$args"
|
||||
}
|
||||
|
||||
bro() {
|
||||
docker run -it --rm \
|
||||
fschl/bropages \
|
||||
|
@ -182,6 +194,25 @@ inkscape() {
|
|||
exit 0;
|
||||
}
|
||||
|
||||
java() {
|
||||
local args=$@
|
||||
local cur_dir=$(pwd)
|
||||
local PROJECT=$(basename $cur_dir)
|
||||
|
||||
del_stopped java_$PROJECT
|
||||
|
||||
docker run -it \
|
||||
--name="java_$PROJECT" \
|
||||
-v $(pwd):/src/$PROJECT \
|
||||
-w /src/$PROJECT \
|
||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
-e DISPLAY=unix$DISPLAY \
|
||||
--net=host \
|
||||
openjdk:8 \
|
||||
bash -c "$args"
|
||||
|
||||
}
|
||||
|
||||
latex() {
|
||||
del_stopped latex
|
||||
|
||||
|
|
Loading…
Reference in New Issue