1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-06 21:45:42 +01:00
Files
chart-testing/Dockerfile

41 lines
1.2 KiB
Docker
Raw Permalink Normal View History

FROM alpine:3.12
RUN apk --no-cache add \
curl \
git \
libc6-compat \
openssh-client \
py3-pip \
py3-wheel \
python3 && \
pip install --upgrade pip==20.2.1
# Install a YAML Linter
ARG YAML_LINT_VERSION=1.24.2
RUN pip install "yamllint==$YAML_LINT_VERSION"
# Install Yamale YAML schema validator
ARG YAMALE_VERSION=3.0.2
RUN pip install "yamale==$YAMALE_VERSION"
# Install kubectl
ARG KUBECTL_VERSION=v1.18.6
Re-write it in Go (#35) * Re-write it in Go Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Fix loading config from home dir Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Print config Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Remove git gc test code Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Remove year in copyright header Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Add alias for lint-and-install Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Fix examples Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Remove OWNERS file Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Add docs generation Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Update CircleCI Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Update readme Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Document building and releasing Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Remove Makefile Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Hide doc-gen command Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Add support for Helm extra args Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Update tool dependencies Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Update Goreleaser Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Upgrade pip Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Update Gopkg.lock Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Add log messages Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Fix CircleCI env var for tag Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Add Docker login Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Readme update for MacOS (#1) * Add build.sh mac prerequisites, and README markdown linting fixes Signed-off-by: Scott Rigby <scott@r6by.com> * Update README.md Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Update Gopkg.lock Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Update config search locations Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Add config files to distro Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Add debug flag Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Add note on config files for linting Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Fix link Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Revert "Update Gopkg.lock" This reverts commit fcbfbdc9db7b3573fdec8eee1c3e172dcb880820. Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Fix link Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> * Fix readme Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2018-11-07 19:06:20 +01:00
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl" && \
chmod +x kubectl && \
mv kubectl /usr/local/bin/
# Install Helm
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"
COPY ./etc/chart_schema.yaml /etc/ct/chart_schema.yaml
COPY ./etc/lintconf.yaml /etc/ct/lintconf.yaml
COPY ct /usr/local/bin/ct
# Ensure that the binary is available on path and is executable
RUN ct --help