Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image] remove azure packages from base image #48762

Merged
merged 1 commit into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions docker/base-deps/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV LANG=C.UTF-8
# TODO(ilr) $HOME seems to point to result in "" instead of "/home/ray"
ENV PATH "/home/ray/anaconda3/bin:$PATH"
ARG DEBIAN_FRONTEND=noninteractive
ARG PYTHON_VERSION=3.8.16
ARG PYTHON_VERSION=3.9
ARG HOSTTYPE=${HOSTTYPE:-x86_64}

ARG RAY_UID=1000
Expand All @@ -39,7 +39,7 @@ RUN sudo apt-get update -y && sudo apt-get upgrade -y \
cmake \
g++ \
zlib1g-dev \
$(if [ "$AUTOSCALER" = "autoscaler" ]; then echo \
$(if [[ "$AUTOSCALER" == "autoscaler" ]]; then echo \
tmux \
screen \
rsync \
Expand Down Expand Up @@ -74,7 +74,7 @@ RUN sudo apt-get update -y && sudo apt-get upgrade -y \
g++; fi) \
&& sudo rm -rf /var/lib/apt/lists/* \
&& sudo apt-get clean \
&& (if [ "$AUTOSCALER" = "autoscaler" ]; \
&& (if [[ "$AUTOSCALER" == "autoscaler" ]]; \
then $HOME/anaconda3/bin/pip --no-cache-dir install \
"redis>=3.5.0,<4.0.0" \
"six==1.13.0" \
Expand All @@ -83,12 +83,7 @@ RUN sudo apt-get update -y && sudo apt-get upgrade -y \
"cryptography==38.0.1" \
"google-api-python-client==1.7.8" \
"google-oauth" \
"azure-cli-core==2.40.0" \
"azure-identity==1.10.0" \
"azure-mgmt-compute==23.1.0" \
"azure-mgmt-network==19.0.0" \
"azure-mgmt-resource==20.0.0" \
"msrestazure==0.6.4"; \
; \
fi;)

WORKDIR $HOME
5 changes: 2 additions & 3 deletions python/ray/autoscaler/azure/example-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ setup_commands: []
# - pip install -U "ray[default] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp38-cp38-manylinux2014_x86_64.whl"

# Custom commands that will be run on the head node after common setup.
# NOTE: rayproject/ray-ml:latest has azure packages bundled
head_setup_commands: []
# - pip install -U azure-cli-core==2.22.0 azure-mgmt-compute==14.0.0 azure-mgmt-msi==1.0.0 azure-mgmt-network==10.2.0 azure-mgmt-resource==13.0.0
head_setup_commands:
- pip install -U azure-cli-core==2.29.1 azure-identity==1.7.0 azure-mgmt-compute==23.1.0 azure-mgmt-network==19.0.0 azure-mgmt-resource==20.0.0 msrestazure==0.6.4

# Custom commands that will be run on worker nodes after common setup.
worker_setup_commands: []
Expand Down
5 changes: 2 additions & 3 deletions python/ray/autoscaler/azure/example-gpu-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ setup_commands: []
# - pip install -U "ray[default] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp38-cp38-manylinux2014_x86_64.whl"

# Custom commands that will be run on the head node after common setup.
# NOTE: rayproject/ray-ml:latest has azure packages bundled
head_setup_commands: []
# - pip install -U azure-cli-core==2.22.0 azure-mgmt-compute==14.0.0 azure-mgmt-msi==1.0.0 azure-mgmt-network==10.2.0 azure-mgmt-resource==13.0.0
head_setup_commands:
- pip install -U azure-cli-core==2.29.1 azure-identity==1.7.0 azure-mgmt-compute==23.1.0 azure-mgmt-network==19.0.0 azure-mgmt-resource==20.0.0 msrestazure==0.6.4

# Custom commands that will be run on worker nodes after common setup.
worker_setup_commands: []
Expand Down