forked from lareeth/alpine-ci-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: odidev <odidev@puresoftware.com>
- Loading branch information
Showing
2 changed files
with
40 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
FROM python:3-alpine | ||
FROM alpine:3.13.6 | ||
MAINTAINER Gareth Luckett <gareth.luckett@gmail.com> | ||
|
||
ARG VCS_REF | ||
|
||
LABEL org.label-schema.vcs-ref=$VCS_REF \ | ||
org.label-schema.vcs-url="https://github.com/lareeth/alpine-ci-tools" | ||
|
||
ARG ARCH=amd64 | ||
ARG KUBERNETES_VERSION=1.15.11 | ||
ARG HELM2_VERSION=2.16.3 | ||
ARG HELM3_VERSION=3.1.2 | ||
ARG AZURE_VERSION=2.2.0 | ||
ARG HELM3_VERSION=3.6.3 | ||
ARG AZURE_VERSION=2.27.2 | ||
|
||
RUN apk add --update curl bash git | ||
|
||
# Kubernetes CLI | ||
RUN curl -s -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl && \ | ||
RUN curl -s -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/${ARCH}/kubectl && \ | ||
chmod +x ./kubectl && \ | ||
mv ./kubectl /usr/local/bin/kubectl | ||
|
||
# Helm 2 | ||
RUN curl -s -LO https://get.helm.sh/helm-v${HELM2_VERSION}-linux-amd64.tar.gz && \ | ||
tar -zxvf helm-v${HELM2_VERSION}-linux-amd64.tar.gz && \ | ||
mv linux-amd64/helm /usr/local/bin/helm && \ | ||
rm -rf helm-v${HELM2_VERSION}-linux-amd64.tar.gz | ||
RUN curl -s -LO https://get.helm.sh/helm-v${HELM2_VERSION}-linux-${ARCH}.tar.gz && \ | ||
tar -zxvf helm-v${HELM2_VERSION}-linux-${ARCH}.tar.gz && \ | ||
mv linux-${ARCH}/helm /usr/local/bin/helm && \ | ||
rm -rf helm-v${HELM2_VERSION}-linux-${ARCH}.tar.gz | ||
|
||
# Helm 3 | ||
RUN curl -s -LO https://get.helm.sh/helm-v${HELM3_VERSION}-linux-amd64.tar.gz && \ | ||
tar -zxvf helm-v${HELM3_VERSION}-linux-amd64.tar.gz && \ | ||
mv linux-amd64/helm /usr/local/bin/helm3 && \ | ||
rm -rf helm-v${HELM3_VERSION}-linux-amd64.tar.gz | ||
RUN curl -s -LO https://get.helm.sh/helm-v${HELM3_VERSION}-linux-${ARCH}.tar.gz && \ | ||
tar -zxvf helm-v${HELM3_VERSION}-linux-${ARCH}.tar.gz && \ | ||
mv linux-${ARCH}/helm /usr/local/bin/helm3 && \ | ||
rm -rf helm-v${HELM3_VERSION}-linux-${ARCH}.tar.gz | ||
|
||
# Azure CLI | ||
RUN apk add --update py-pip && \ | ||
apk add --update --virtual=build gcc libffi-dev musl-dev openssl-dev python-dev make && \ | ||
apk add --update --virtual=build gcc libffi-dev musl-dev openssl-dev python3-dev make && \ | ||
pip --no-cache-dir install azure-cli==${AZURE_VERSION} && \ | ||
apk del --purge build |