Skip to content

Commit 4b8bc76

Browse files
authored
Merge pull request #829 from Kaggle/unpin-distributed
Unpin distributed
2 parents 6cc39c3 + 56c109c commit 4b8bc76

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ RUN conda config --add channels conda-forge && \
4949
/tmp/clean-layer.sh
5050

5151
# The anaconda base image includes outdated versions of these packages. Update them to include the latest version.
52-
# b/150498764 distributed 2.11.0 fails at import while trying to reach out to 8.8.8.8 since the network is disabled in our hermetic tests.
53-
RUN pip install distributed==2.10.0 && \
54-
pip install seaborn python-dateutil dask && \
52+
RUN pip install seaborn python-dateutil dask && \
5553
pip install pyyaml joblib pytagcloud husl geopy ml_metrics mne pyshp && \
5654
pip install pandas && \
5755
# Install h2o from source.

test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,18 @@ fi
8787
# By default, TensorFlow maps nearly all of the GPU memory visible to the process.
8888
# This is causing issue when other libraries are trying to run tests using a GPU.
8989
# See: https://www.tensorflow.org/guide/gpu#allowing_gpu_memory_growth
90+
#
91+
# Note about `--hostname localhost` (b/158137436)
92+
# hostname defaults to the container name which fails DNS name
93+
# resolution with --net=none (required to keep tests hermetic). See details in bug.
9094
docker run --rm -t --read-only --net=none \
9195
-e HOME=/tmp -e KAGGLE_DATA_PROXY_TOKEN=test-key \
9296
-e KAGGLE_USER_SECRETS_TOKEN_KEY=test-secrets-key \
9397
-e KAGGLE_URL_BASE=http://127.0.0.1:8001 \
9498
-e KAGGLE_DATA_PROXY_URL=http://127.0.0.1:8000 \
9599
-e KAGGLE_DATA_PROXY_PROJECT=test \
96100
-e TF_FORCE_GPU_ALLOW_GROWTH=true \
101+
--hostname localhost \
97102
--shm-size=2g \
98103
-v $PWD:/input:ro -v /tmp/python-build/working:/working \
99104
-v /tmp/python-build/tmp:/tmp -v /tmp/python-build/devshm:/dev/shm \

0 commit comments

Comments
 (0)