Skip to content

Commit f1a9fa8

Browse files
committed
hostname defaults to localhost
1 parent 96264fe commit f1a9fa8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +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-
RUN pip install distributed && \
53-
pip install seaborn python-dateutil dask && \
52+
RUN pip install seaborn python-dateutil dask && \
5453
pip install pyyaml joblib pytagcloud husl geopy ml_metrics mne pyshp && \
5554
pip install pandas && \
5655
# Install h2o from source.

test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ docker run --rm -t --read-only --net=none \
9494
-e KAGGLE_DATA_PROXY_URL=http://127.0.0.1:8000 \
9595
-e KAGGLE_DATA_PROXY_PROJECT=test \
9696
-e TF_FORCE_GPU_ALLOW_GROWTH=true \
97+
# b/158137436: hostname defaults to the container name which fails DNS name
98+
# resolution with --net=none (required to keep tests hermetic). See details in bug.
99+
--hostname localhost \
97100
--shm-size=2g \
98101
-v $PWD:/input:ro -v /tmp/python-build/working:/working \
99102
-v /tmp/python-build/tmp:/tmp -v /tmp/python-build/devshm:/dev/shm \

0 commit comments

Comments
 (0)