-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (41 loc) · 1.82 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ghcr.io/actions/actions-runner:2.319.1
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER 0
### INSTALL DEPENDENCIES
RUN apt-get update && apt-get install -y --no-install-recommends curl gnupg2 xz-utils unzip jq git rsync \
&& rm -rf /var/lib/apt/lists/*
# Go
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.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.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.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%2Fv5.1.1/kustomize_v5.1.1_linux_amd64.tar.gz | \
tar -xzf - > /usr/local/bin/kustomize && \
chmod +x /usr/local/bin/kustomize
# Chrome
RUN sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' && \
curl -sL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
apt-get update && \
apt-get install --no-install-recommends -y google-chrome-stable && \
rm -rf /var/lib/apt/lists/*
# NodeJs
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-v18.18.0-linux-x64/bin"
# Set environment for all users
# PATH variable has been extended where necessary previously in this file
RUN sed -i 's@PATH=.*@PATH='"${PATH}"'@g' /etc/environment
# Yarn
RUN npm i -g yarn
USER 1001