Skip to content

Commit

Permalink
fix gcloud config path
Browse files Browse the repository at this point in the history
  • Loading branch information
djherbis committed Nov 27, 2024
1 parent dc18661 commit ffabed3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,18 @@ fi
# Note about `--hostname localhost` (b/158137436)
# hostname defaults to the container name which fails DNS name
# resolution with --net=none (required to keep tests hermetic). See details in bug.
docker run --rm -t --net=none \
#
# Note about CLOUDSDK_CONFIG=/tmp/.config/gcloud
# We use the /tmp dir since the filesystem is --read-only and we need writable space for gcloud configs.
docker run --rm -t --read-only --net=none \
-e HOME=/tmp -e KAGGLE_DATA_PROXY_TOKEN=test-key \
-e KAGGLE_USER_SECRETS_TOKEN_KEY=test-secrets-key \
-e KAGGLE_URL_BASE=http://127.0.0.1:0 \
-e KAGGLE_DATA_PROXY_URL=http://127.0.0.1:8000 \
-e KAGGLE_DATA_PROXY_PROJECT=test \
-e TF_FORCE_GPU_ALLOW_GROWTH=true \
-e XLA_PYTHON_CLIENT_PREALLOCATE=false \
-e CLOUDSDK_CONFIG=/tmp/.config/gcloud \
--hostname localhost \
--shm-size=2g \
-v $PWD:/input:ro -v /tmp/python-build/working:/working \
Expand Down

0 comments on commit ffabed3

Please sign in to comment.