2020-08-10 14:41:03 +02:00
|
|
|
FROM alpine:3.12
|
2018-06-06 15:42:53 +02:00
|
|
|
|
|
|
|
|
RUN apk --no-cache add \
|
|
|
|
|
curl \
|
|
|
|
|
git \
|
|
|
|
|
libc6-compat \
|
|
|
|
|
openssh-client \
|
2020-08-10 14:41:03 +02:00
|
|
|
py3-pip \
|
|
|
|
|
py3-wheel \
|
|
|
|
|
python3 && \
|
|
|
|
|
pip install --upgrade pip==20.2.1
|
2018-06-06 15:42:53 +02:00
|
|
|
|
|
|
|
|
# Install a YAML Linter
|
2020-08-10 14:41:03 +02:00
|
|
|
ARG YAML_LINT_VERSION=1.24.2
|
2018-06-06 15:42:53 +02:00
|
|
|
RUN pip install "yamllint==$YAML_LINT_VERSION"
|
|
|
|
|
|
|
|
|
|
# Install Yamale YAML schema validator
|
2020-08-10 14:41:03 +02:00
|
|
|
ARG YAMALE_VERSION=3.0.2
|
2018-06-06 15:42:53 +02:00
|
|
|
RUN pip install "yamale==$YAMALE_VERSION"
|
|
|
|
|
|
|
|
|
|
# Install kubectl
|
2020-08-10 14:41:03 +02:00
|
|
|
ARG KUBECTL_VERSION=v1.18.6
|
2018-11-07 19:06:20 +01:00
|
|
|
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl" && \
|
2018-06-06 15:42:53 +02:00
|
|
|
chmod +x kubectl && \
|
|
|
|
|
mv kubectl /usr/local/bin/
|
|
|
|
|
|
|
|
|
|
# Install Helm
|
2021-08-19 12:04:28 +02:00
|
|
|
ARG helm_version=v2.17.0
|
|
|
|
|
LABEL helm_version=$helm_version
|
|
|
|
|
RUN curl -LO "https://get.helm.sh/helm-$helm_version-linux-amd64.tar.gz" && \
|
|
|
|
|
mkdir -p "/usr/local/helm-$helm_version" && \
|
|
|
|
|
tar -xzf "helm-$helm_version-linux-amd64.tar.gz" -C "/usr/local/helm-$helm_version" && \
|
|
|
|
|
ln -s "/usr/local/helm-$helm_version/linux-amd64/helm" /usr/local/bin/helm && \
|
|
|
|
|
rm -f "helm-$helm_version-linux-amd64.tar.gz"
|
2018-06-06 15:42:53 +02:00
|
|
|
|
2019-01-07 22:39:39 +01:00
|
|
|
COPY ./etc/chart_schema.yaml /etc/ct/chart_schema.yaml
|
|
|
|
|
COPY ./etc/lintconf.yaml /etc/ct/lintconf.yaml
|
|
|
|
|
COPY ct /usr/local/bin/ct
|
2019-02-22 03:10:56 -05:00
|
|
|
# Ensure that the binary is available on path and is executable
|
|
|
|
|
RUN ct --help
|