Skip to content

Commit

Permalink
fix: upgrade runner base image (#56)
Browse files Browse the repository at this point in the history
* fix: numeric user

* deps

* fix go

* non rootless

* rootless
  • Loading branch information
matmut7 authored Oct 2, 2023
1 parent dedb123 commit d4b736a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
FROM summerwind/actions-runner-dind-rootless:v2.309.0-ubuntu-20.04

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root
USER 0

### INSTALL DEPENDENCIES

# Go
RUN curl -sL https://go.dev/dl/go1.17.linux-amd64.tar.gz | \
RUN curl -sL https://go.dev/dl/go1.21.1.linux-amd64.tar.gz | \
tar -C /usr/local -xzf -
ENV PATH="${PATH}:/usr/local/go/bin"

# Kubectl
RUN curl -sL https://dl.k8s.io/release/v1.23.4/bin/linux/amd64/kubectl > /usr/local/bin/kubectl && \
RUN curl -sL https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl > /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl

# yq
RUN curl -sL https://github.com/mikefarah/yq/releases/download/v4.20.2/yq_linux_amd64.tar.gz | \
RUN curl -sL https://github.com/mikefarah/yq/releases/download/v4.35.2/yq_linux_amd64.tar.gz | \
tar -xzf - > /usr/local/bin/yq && \
chmod +x /usr/local/bin/yq

# Helm
RUN curl -sL https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz | \
RUN curl -sL https://get.helm.sh/helm-v3.12.3-linux-amd64.tar.gz | \
tar -xzf - --strip-components 1 -C /usr/local/bin linux-amd64/helm && \
chmod +x /usr/local/bin/helm

# Kustomize
RUN curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv4.5.2/kustomize_v4.5.2_linux_amd64.tar.gz | \
RUN curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.1.1/kustomize_v5.1.1_linux_amd64.tar.gz | \
tar -xzf - > /usr/local/bin/kustomize && \
chmod +x /usr/local/bin/kustomize

Expand All @@ -37,13 +37,13 @@ RUN sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable
rm -rf /var/lib/apt/lists/*

# NodeJs
RUN curl -sL https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.xz | \
RUN curl -sL https://nodejs.org/dist/v18.18.0/node-v18.18.0-linux-x64.tar.xz | \
tar -C /usr/local/lib -Jxf -
ENV PATH="${PATH}:/usr/local/lib/node-v16.15.0-linux-x64/bin"
ENV PATH="${PATH}:/usr/local/lib/node-v18.18.0-linux-x64/bin"

# Yarn
RUN npm i -g yarn && \
# Set env for all users
sed -i 's@PATH=.*@PATH='"${PATH}"'@g' /etc/environment

USER runner
USER 1000

0 comments on commit d4b736a

Please sign in to comment.