Skip to content

Commit 54f753f

Browse files
committed
add: Dockerfile for Python 3.9/3.10
1 parent b6bacdc commit 54f753f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

python/Dockerfile.3.10-ubuntu20.04

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ ENV PYTHONUNBUFFERED=1 \
2929
PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
3030
LANG=C.UTF-8
3131

32+
# Cartopy>=0.20 requires proj>=8.0.0 but it will ship on Ubuntu 22.04.
3233
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.10 && \
3334
python3.10 -m pip install --upgrade pip && \
3435
python3.10 -m pip install --no-cache-dir -U setuptools && \
3536
python3.10 -m pip install --no-cache-dir h5py && \
3637
python3.10 -m pip install --no-cache-dir Cython && \
3738
python3.10 -m pip install --no-cache-dir matplotlib bokeh && \
3839
python3.10 -m pip install --no-cache-dir versioneer && \
39-
python3.10 -m pip install --no-cache-dir pyproj Cartopy && \
40+
python3.10 -m pip install --no-cache-dir pyproj cartopy==0.19.0.post1 && \
4041
python3.10 -m pip install --no-cache-dir pandas && \
4142
python3.10 -m pip install --no-cache-dir seaborn && \
4243
python3.10 -m pip install --no-cache-dir pillow && \
@@ -56,6 +57,7 @@ RUN python3.10 -m ipykernel install --display-name "Python 3.10 on Backend.AI" &
5657
cat /usr/local/share/jupyter/kernels/python3/kernel.json
5758

5859
# Backend.AI specifics
60+
COPY ./service-defs /etc/backend.ai/service-defs
5961
LABEL ai.backend.kernelspec="1" \
6062
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
6163
ai.backend.features="batch query uid-match user-input" \

python/Dockerfile.3.9-ubuntu20.04

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN apt-get update && \
1919

2020
RUN apt-get update && \
2121
apt-get install -y software-properties-common && \
22-
add-apt-repository ppa:deadsnakes/ppa && \
22+
add-apt-repository ppa:deadsnakes/ppa && \
2323
apt-get update && \
2424
apt-get install -y python3.9 python3.9-dev python3.9-distutils && \
2525
apt-get clean && \
@@ -29,13 +29,14 @@ ENV PYTHONUNBUFFERED=1 \
2929
PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
3030
LANG=C.UTF-8
3131

32+
# Cartopy>=0.20 requires proj>=8.0.0 but it will ship on Ubuntu 22.04.
3233
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.9 && \
3334
python3.9 -m pip install --no-cache-dir -U setuptools && \
3435
python3.9 -m pip install --no-cache-dir h5py && \
3536
python3.9 -m pip install --no-cache-dir Cython && \
3637
python3.9 -m pip install --no-cache-dir matplotlib bokeh && \
3738
python3.9 -m pip install --no-cache-dir versioneer && \
38-
python3.9 -m pip install --no-cache-dir pyproj Cartopy && \
39+
python3.9 -m pip install --no-cache-dir pyproj cartopy==0.19.0.post1 && \
3940
python3.9 -m pip install --no-cache-dir pandas && \
4041
python3.9 -m pip install --no-cache-dir seaborn && \
4142
python3.9 -m pip install --no-cache-dir pillow && \
@@ -55,6 +56,7 @@ RUN python3.9 -m ipykernel install --display-name "Python 3.9 on Backend.AI" &&
5556
cat /usr/local/share/jupyter/kernels/python3/kernel.json
5657

5758
# Backend.AI specifics
59+
COPY ./service-defs /etc/backend.ai/service-defs
5860
LABEL ai.backend.kernelspec="1" \
5961
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
6062
ai.backend.features="batch query uid-match user-input" \

0 commit comments

Comments
 (0)