37 lines
1.2 KiB
Docker
37 lines
1.2 KiB
Docker
|
|
FROM catthehacker/ubuntu:act-latest
|
|
|
|
RUN echo "build started.." && \
|
|
apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
openssh-client \
|
|
curl \
|
|
ansible \
|
|
nodejs \
|
|
rclone \
|
|
rsync \
|
|
gettext-base \ # provides envsubst
|
|
bash \
|
|
tar \
|
|
jq && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install kubectl (latest stable)
|
|
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" && \
|
|
chmod +x ./kubectl && \
|
|
mv ./kubectl /usr/local/bin/kubectl
|
|
|
|
# Install Helm pinned version
|
|
RUN curl -fsSL https://get.helm.sh/helm-v3.14.4-linux-amd64.tar.gz -o helm.tar.gz && \
|
|
tar -zxvf helm.tar.gz && \
|
|
mv linux-amd64/helm /usr/local/bin/helm && \
|
|
rm -rf linux-amd64 helm.tar.gz
|
|
|
|
# Install Helm latest release dynamically
|
|
RUN HELM_VERSION=$(curl -s https://api.github.com/repos/helm/helm/releases/latest | jq -r .tag_name) && \
|
|
curl -fsSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -o helm.tar.gz && \
|
|
tar -zxvf helm.tar.gz && \
|
|
mv linux-amd64/helm /usr/local/bin/helm && \
|
|
rm -rf linux-amd64 helm.tar.gz
|
|
|
|
|