Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade runner base image #56

Merged
merged 5 commits into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading