Skip to content

Commit

Permalink
chore: Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ITHedgeHog authored and edvald committed Aug 5, 2021
1 parent 6a27207 commit 87c2bb0
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions support/azure.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
ARG TAG=latest
FROM gardendev/garden:${TAG}
ENV KUBELOGIN_VERSION="v0.0.9"


# Build dependencies
RUN apk add --virtual=build gcc libffi-dev musl-dev openssl-dev make \
RUN apk add --virtual=build gcc libffi-dev musl-dev openssl-dev make readline linux-pam \
# Runtime dependency
&& apk add python3-dev && pip3 install -U pip \
&& apk add bash sudo shadow python3-dev && pip3 install -U pip \
# Actual azure cli
&& pip3 --no-cache-dir install azure-cli \
# Remove build dependencies
&& apk del --purge build

# Azure DevOps Pipeline Dependencies
RUN apk add --no-cache --virtual .pipeline-deps readline linux-pam \
&& apk add bash sudo shadow \
&& apk del .pipeline-deps

# Ensure kubelogin is available
ENV KUBELOGIN_VERSION="v0.0.9"
RUN wget -O kubelogin-linux-amd64.zip https://github.com/Azure/kubelogin/releases/download/$KUBELOGIN_VERSION/kubelogin-linux-amd64.zip \
&& unzip kubelogin-linux-amd64.zip \
&& cp bin/linux_amd64/kubelogin /usr/local/bin/ \
&& rm kubelogin-linux-amd64.zip


# Required by Azure DevOps to tell the system where node is installed
LABEL "com.azure.dev.pipelines.agent.handler.node.path"="/usr/local/bin/node"

ENTRYPOINT []
Expand Down

0 comments on commit 87c2bb0

Please sign in to comment.