Skip to content

Commit

Permalink
fix run-server.sh volume path in Cygwin (mongodb-labs#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinAlbs authored and adriandole committed Oct 7, 2024
1 parent 2a9c608 commit 406b819
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .evergreen/docker/run-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ fi
test -t 1 && ARGS+=" -t"

# Map in the DRIVERS_TOOLS directory.
ARGS+=" -v `pwd`:/root/drivers-evergreen-tools"
HOSTPATH="$(pwd)"
if [[ "$(uname -s)" == CYGWIN* ]]; then
# Convert to Windows-style path when run in Cygwin.
HOSTPATH=$(cygpath -w "$HOSTPATH")
fi

ARGS+=" -v $HOSTPATH:/root/drivers-evergreen-tools"

# Launch server docker container.
docker run $ARGS $NAME $ENTRYPOINT
Expand Down

0 comments on commit 406b819

Please sign in to comment.