Skip to content
Open
Changes from 1 commit
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
7 changes: 5 additions & 2 deletions image_definitions/data/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ RUN echo "https://dl-cdn.alpinelinux.org/alpine/v3.17/community" >> /etc/apk/rep
RUN apk update

# Add latest version of python and poetry
RUN apk add --update python3 py3-pip gcc musl-dev linux-headers python3-dev
RUN apk add --update python3 py3-pip gcc musl-dev linux-headers python3-dev jq
RUN pip install pytest pylint pylint-exit pytest-azurepipelines pytest-cov poetry

# Install the databricks CLI, precommit and tomli
RUN pip install databricks-cli pre-commit tomli
RUN pip install databricks-cli pre-commit tomli
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally add "azure-cli" here rather than separate line otherwise we create unnecessary docker layers, happy to approve now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure cli is already in the base image?

Copy link
Contributor Author

@satenderrathee satenderrathee Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Jack, I can see it in base image but I think its getting removed from data image ,please refer this
RUN apk del py-pip \
&& apk del python3-dev py3-pip
&& rm -rf ~/.cache/pip \
&& apk del python3

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@russellseymour shouldn't az cli be available?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, juust catching up with PRs

Yes I was just looking at this.

If we are upgrading Python herte then I think we should be consistent and upgrage Python in the base image.
I do not want to have to install az twice.


# Install Azure CLI in the Data image
RUN pip install azure-cli