Skip to content

Commit 383470b

Browse files
committed
Don't assume the location of this repository in docker.sh
Allow it to be anywhere on disk.
1 parent 89b68fa commit 383470b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docker.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ set -euo pipefail
2323

2424
image=us-east1-docker.pkg.dev/crl-ci-images/cockroach/example-orms-builder:20200729-1723
2525

26-
gopath=$(go env GOPATH)
27-
gopath0=${gopath%%:*}
28-
2926
# Absolute path to this repository.
3027
repo_root=$(cd "$(dirname "${0}")" && pwd)
3128

@@ -46,7 +43,7 @@ echo "${username}:x:${uid_gid}::/home/${username}:/bin/bash" > "${container_root
4643
exec docker run \
4744
--volume="${container_root}/etc/passwd:/etc/passwd" \
4845
--volume="${container_root}/home/${username}:/home/${username}" \
49-
--volume="${gopath0}/src:/home/${username}/go/src" \
46+
--volume="${repo_root}:/home/${username}/go/src/github.com/cockroachdb/examples-orms" \
5047
--workdir="/home/${username}/go/src/github.com/cockroachdb/examples-orms" \
5148
--env=PIP_USER=1 \
5249
--env=GEM_HOME="/home/${username}/.gems" \

0 commit comments

Comments
 (0)