Skip to content

Commit

Permalink
[image] remove azure packages from base image
Browse files Browse the repository at this point in the history
too ancient; and there are no tests.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
  • Loading branch information
aslonnie committed Nov 16, 2024
1 parent 3435c25 commit f0a4dcb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
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
3 changes: 1 addition & 2 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
- 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

# Custom commands that will be run on worker nodes after common setup.
worker_setup_commands: []
Expand Down
3 changes: 1 addition & 2 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
- 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

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

0 comments on commit f0a4dcb

Please sign in to comment.