diff options
Diffstat (limited to 'fuel-build/docker')
-rwxr-xr-x | fuel-build/docker/runcontext | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuel-build/docker/runcontext b/fuel-build/docker/runcontext index d4e8b9c..6140fa0 100755 --- a/fuel-build/docker/runcontext +++ b/fuel-build/docker/runcontext @@ -18,8 +18,9 @@ FROM $context RUN date || date RUN /root/setcontext $USER $UID $GID $HOME EOF` +GITROOT=`git rev-parse --show-toplevel` CID=`echo $res | sed 's/.* //'` -docker run --privileged=true --rm -i -t -e HOME=$HOME -u $USER -w $PWD -v ${HOME}/.ssh:${HOME}/.ssh -v $PWD:$PWD $CID "$@" +docker run --privileged=true --rm -i -t -e HOME=$HOME -u $USER -w $PWD -v ${HOME}/.ssh:${HOME}/.ssh -v $GITROOT:$GITROOT $CID "$@" rc=$? docker rmi $CID > /dev/null exit $rc |