<NME> run-ruby-in-container.sh
<BEF> #!/bin/bash
set -e

testDir="$(readlink -f "$(dirname "$BASH_SOURCE")")"
runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
inContainerPath="/tmp/ruby"
cmd=( "$inContainerPath/container.rb" )

if ! ret="$(docker run --rm -v "$dir":"$inContainerPath":ro --entrypoint ruby "$1" "${cmd[@]}")"; then
	echo >&2 "error: '"$(basename "$dir")"' failed! got $ret"
	exit 1
fi

<MSG> Update all our in-container scripts to run with workdir set to the inContainerPath

<DFF> @@ -6,7 +6,7 @@ dir="$(readlink -f "$(dirname "$BASH_SOURCE")")"
 inContainerPath="/tmp/ruby"
 cmd=( "$inContainerPath/container.rb" )
 
-if ! ret="$(docker run --rm -v "$dir":"$inContainerPath":ro --entrypoint ruby "$1" "${cmd[@]}")"; then
+if ! ret="$(docker run --rm -v "$dir":"$inContainerPath":ro -w "$inContainerPath" --entrypoint ruby "$1" "${cmd[@]}")"; then
 	echo >&2 "error: '"$(basename "$dir")"' failed! got $ret"
 	exit 1
 fi

Update all our in-container scripts to run with workdir set to the inContainerPath