Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't assume the location of this repository in docker.sh #152

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ set -euo pipefail

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

gopath=$(go env GOPATH)
gopath0=${gopath%%:*}

# Absolute path to this repository.
repo_root=$(cd "$(dirname "${0}")" && pwd)

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