[python3.10] Build py310 images (#24859)

Build python 3.10 images so we can run release tests.
This commit is contained in:
Chen Shen 2022-05-18 08:48:20 -07:00 committed by GitHub
parent c3d54de9ee
commit 1325cf7876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 7 deletions

View file

@ -136,6 +136,14 @@
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
- python ./ci/build/build-docker-images.py --py-versions py39 --device-types cu110 cu111 cu112 --build-type BUILDKITE --build-base
- label: ":docker: Build Images: py310"
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
commands:
- LINUX_WHEELS=1 ./ci/ci.sh build
- pip install -q docker aws_requests_auth boto3
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
- python ./ci/build/build-docker-images.py --py-versions py310 --device-types cpu --build-type BUILDKITE --build-base
- label: ":book: Lint"
commands:
- export LINT=1

View file

@ -29,7 +29,13 @@ DOCKER_HUB_DESCRIPTION = {
"ray-worker-container": "Internal Image for CI test",
}
PY_MATRIX = {"py36": "3.6.12", "py37": "3.7.7", "py38": "3.8.5", "py39": "3.9.5"}
PY_MATRIX = {
"py36": "3.6.12",
"py37": "3.7.7",
"py38": "3.8.5",
"py39": "3.9.5",
"py310": "3.10.4",
}
BASE_IMAGES = {
"cu112": "nvidia/cuda:11.2.0-cudnn8-devel-ubuntu18.04",
@ -182,15 +188,15 @@ def _build_docker_image(
)
# TODO(https://github.com/ray-project/ray/issues/16599):
# remove below after supporting ray-ml images with Python 3.9
if image_name == "ray-ml" and py_version == "py39":
print(f"{image_name} image is currently unsupported with " "Python 3.9")
# remove below after supporting ray-ml images with Python 3.9+
if image_name == "ray-ml" and py_version in {"py39", "py310"}:
print(f"{image_name} image is currently unsupported with " "Python 3.9/3.10")
return
build_args = {}
build_args["PYTHON_VERSION"] = PY_MATRIX[py_version]
# I.e. "py36"[-1] == 6
build_args["PYTHON_MINOR_VERSION"] = py_version[-1]
# I.e. "py310"[3:] == 10
build_args["PYTHON_MINOR_VERSION"] = py_version[3:]
device_tag = f"{image_type}"

View file

@ -76,4 +76,5 @@ RUN sudo apt-get update -y && sudo apt-get upgrade -y \
&& sudo rm -rf /var/lib/apt/lists/* \
&& sudo apt-get clean
WORKDIR $HOME

View file

@ -1,4 +1,5 @@
py36
py37
py38
py39
py39
py310