Skip to content

Commit 8bf4913

Browse files
authored
Upgrade base image to m64. (#969)
- Pin pyproj since 3.x is not compatible with latest version of basemap yet. - Improved the basemap test. http://b/182405233
1 parent 25beb81 commit 8bf4913

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_TAG=m61
1+
ARG BASE_TAG=m64
22
ARG TENSORFLOW_VERSION=2.4.1
33

44
FROM gcr.io/kaggle-images/python-tensorflow-whl:${TENSORFLOW_VERSION}-py37 as tensorflow_whl
@@ -39,8 +39,9 @@ RUN conda config --add channels conda-forge && \
3939
conda config --add channels pytorch && \
4040
conda config --add channels rapidsai && \
4141
# ^ rapidsai is the highest priority channel, default lowest, conda-forge 2nd lowest.
42-
# 161473620#comment7 pin required to prevent resolver from picking pysal 1.x., pysal 2.2.x is also downloading data on import.
43-
conda install matplotlib basemap cartopy python-igraph imagemagick "pysal==2.1.0" && \
42+
# b/182405233 pyproj 3.x is not compatible with basemap 1.2.1
43+
# b/161473620#comment7 pin required to prevent resolver from picking pysal 1.x., pysal 2.2.x is also downloading data on import.
44+
conda install matplotlib basemap cartopy python-igraph imagemagick "pyproj=2.6" "pysal==2.1.0" && \
4445
conda install "pytorch=1.7" "torchvision=0.8" "torchaudio=0.7" "torchtext=0.8" cpuonly && \
4546
/tmp/clean-layer.sh
4647

tensorflow-whl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 AS nvidia
2-
FROM gcr.io/deeplearning-platform-release/base-cpu:m61
2+
FROM gcr.io/deeplearning-platform-release/base-cpu:m64
33

44
# Avoid interactive configuration prompts/dialogs during apt-get.
55
ENV DEBIAN_FRONTEND=noninteractive

tests/test_matplotlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ def test_plot(self):
1414
self.assertTrue(os.path.isfile("plot1.png"))
1515

1616
def test_basemap(self):
17-
Basemap(width=100,height=100,projection='aeqd',
18-
lat_0=40,lon_0=-105)
17+
m = Basemap(width=100,height=100,projection='aeqd', lat_0=40,lon_0=-105)
18+
self.assertEqual(0, m.xmin)

0 commit comments

Comments
 (0)