Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ -z "$1" ]] ; then
- echo "usage: che [action] [arg1] [arg2]"
- exit
- fi
- action=$1
- arg1=$2
- arg2=$3
- data=/home/mechevar/local/che
- sync=/media/che
- docker run -ti \
- -v /var/run/docker.sock:/var/run/docker.sock \
- -v ${data}:/data \
- -v ${sync}:/sync \
- eclipse/che ${action} ${arg1} ${arg2}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement