Skip to content

Remove leftover azd binary artifact #515

@surajssd

Description

@surajssd

I see that azd is installed like this:

# Install azure-developer-cli (azd)
ENV AZD_IN_CLOUDSHELL=1 \
AZD_SKIP_UPDATE_CHECK=1
RUN curl -fsSL https://aka.ms/install-azd.sh | bash && \

But then the left overs are not cleaned up. I can see that azd is available twice:

# whereis azd
azd: /usr/local/bin/azd

and in

# ls /opt/microsoft/azd/
azd-linux-amd64    .installed-by.txt  NOTICE.txt

You can see that the sha of the two files is the same:

root [ / ]# sha256sum /usr/local/bin/azd
573b12448e7f89a97a906e31c5d916f255f1a3fdbe081926378af6597ab8c2a7  /usr/local/bin/azd
root [ / ]# sha256sum /opt/microsoft/azd/azd-linux-amd64
573b12448e7f89a97a906e31c5d916f255f1a3fdbe081926378af6597ab8c2a7  /opt/microsoft/azd/azd-linux-amd64

The solution is to clean up /opt/microsoft/azd/ after installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions