run 297 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. PY=py3
  3. if [ "$1" == '--py' ]; then
  4. PY=py${2}
  5. shift
  6. shift
  7. fi
  8. CONTAINER=youcompleteme/ycm-vim-${PY}:manual
  9. pushd $(dirname $0)
  10. docker run --mount src="$(pwd)/../../../",target=/home/dev/YouCompleteMe,type=bind \
  11. -it ${CONTAINER} \
  12. "$@"
  13. popd