File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ FROM gcr.io/kaggle-images/rcran:${BASE_TAG}
4
4
5
5
ADD clean-layer.sh /tmp/clean-layer.sh
6
6
7
- # Default to python3.7
8
- RUN apt-get update && \
9
- update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 && \
10
- update-alternatives --config python && \
11
- apt install -y python3-pip python3-venv && \
12
- /tmp/clean-layer.sh
7
+ # Default to python3.8
8
+ RUN ln -sf /usr/bin/python3.8 /usr/bin/python
9
+ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
10
+ RUN python get-pip.py
13
11
14
12
RUN apt-get update && \
15
13
apt-get install apt-transport-https && \
@@ -36,7 +34,7 @@ RUN apt-get install -y libhdf5-dev && \
36
34
/tmp/clean-layer.sh
37
35
38
36
RUN apt-get install -y libzmq3-dev default-jdk && \
39
- apt-get install -y python -dev libcurl4-openssl-dev libssl-dev && \
37
+ apt-get install -y python3.8 -dev libcurl4-openssl-dev libssl-dev && \
40
38
pip install jupyter pycurl && \
41
39
# Install older tornado - https://github.com/jupyter/notebook/issues/4437
42
40
pip install "tornado<6" && \
Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ docker run -d --name=jupyter_test_r --read-only --net=none \
83
83
sleep 3
84
84
docker kill jupyter_test_r && docker rm jupyter_test_r
85
85
86
+ # Check that papermill is installed in python (b/191304257).
87
+ docker run --rm --name=papermill_test_r --read-only --net=none \
88
+ " $IMAGE_TAG " python -c ' import sys;import papermill as pm; print(pm.__version__)'
89
+
86
90
docker run --rm -t --net=none \
87
91
-e HOME=/tmp \
88
92
-v $PWD :/input:ro -v /tmp/rstats-build/working:/working \
You can’t perform that action at this time.
0 commit comments