-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.build
75 lines (71 loc) · 3.53 KB
/
Dockerfile.build
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Kolkata
WORKDIR /home/root/
RUN apt update \
&& apt install -qy python3 ansible tzdata git vim curl unzip zsh ncurses-bin less jq tmux \
&& chsh -s /usr/bin/zsh \
&& sed -i '1 i\export ZDOTDIR=/home/root' /etc/zsh/zshrc \
&& apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
RUN curl -sSL https://storage.googleapis.com/kubernetes-release/release/v1.29.2/bin/linux/arm64/kubectl -o kubectl \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/
RUN curl -sSL https://awscli.amazonaws.com/awscli-exe-linux-aarch64-2.15.35.zip -o "awscliv2.zip" \
&& unzip -qq awscliv2.zip \
&& ./aws/install \
&& rm -rf awscliv2.zip \
aws \
/usr/local/aws-cli/v2/*/dist/aws_completer \
/usr/local/aws-cli/v2/*/dist/awscli/data/ac.index \
/usr/local/aws-cli/v2/*/dist/awscli/examples
RUN git clone --depth=1 --branch v3.0.0 https://github.com/tfutils/tfenv.git /home/root/.tfenv \
&& ln -s /home/root/.tfenv/bin/* /usr/local/bin \
&& tfenv install 1.1.4 \
&& tfenv use 1.1.4
RUN mkdir -p /tmp && cd /tmp \
&& curl -sSL https://github.com/derailed/k9s/releases/download/v0.32.4/k9s_Linux_arm64.tar.gz -o "k9s.tar.gz" \
&& tar -zxvf ./k9s.tar.gz \
&& chmod a+x k9s \
&& mv k9s /usr/local/bin/k9s \
&& cd && rm -rf /tmp/*
RUN mkdir -p /tmp && cd /tmp \
&& curl "https://s3.amazonaws.com/session-manager-downloads/plugin/1.2.553.0/ubuntu_arm64/session-manager-plugin.deb" -o "session-manager-plugin.deb" \
&& dpkg -i session-manager-plugin.deb \
&& cd && rm -rf /tmp/*
RUN curl -sSL https://github.com/stern/stern/releases/download/v1.28.0/stern_1.28.0_linux_arm64.tar.gz -o "/home/root/output.tar.gz" \
&& tar -xf ./output.tar.gz \
&& rm ./output.tar.gz \
&& mv stern /usr/local/bin/
RUN curl -sSL https://github.com/starship/starship/releases/download/v1.18.2/starship-aarch64-unknown-linux-musl.tar.gz -o "/home/root/output.tar.gz" \
&& tar -xf ./output.tar.gz \
&& rm ./output.tar.gz \
&& mv starship /usr/local/bin/
RUN curl -sSL https://github.com/b4b4r07/enhancd/archive/refs/tags/v2.5.1.tar.gz -o "/home/root/output.tar.gz" \
&& tar -xf ./output.tar.gz \
&& rm ./output.tar.gz \
&& mv enhancd-* enhancd/ \
&& apt update && apt install -y fzf \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sSL https://github.com/marlonrichert/zsh-autocomplete/archive/refs/tags/23.05.02.tar.gz -o "zsh-autocomplete.tar.gz" \
&& tar -vxf ./zsh-autocomplete.tar.gz \
&& rm ./zsh-autocomplete.tar.gz
RUN curl -sSL https://releases.commonfate.io/granted/v0.11.1/granted_0.11.1_linux_arm64.tar.gz -o granted.tar.gz \
&& tar -zxvf ./granted.tar.gz -C /usr/local/bin/ \
&& rm granted.tar.gz
RUN curl -sSL https://github.com/mikefarah/yq/releases/download/v4.33.3/yq_linux_arm64 -o /usr/local/bin/yq \
&& chmod +x /usr/local/bin/yq
RUN mkdir -p /tmp && cd /tmp \
&& curl -sSL https://github.com/atuinsh/atuin/releases/download/v18.0.1/atuin-v18.0.1-aarch64-unknown-linux-gnu.tar.gz -o "output.tar.gz" \
&& tar -xf ./output.tar.gz --strip-components=1 \
&& mv atuin /usr/local/bin/ \
&& cd && rm -rf /tmp/*
RUN mkdir -p /tmp && cd /tmp \
&& curl -sSL https://github.com/istio/istio/releases/download/1.21.0/istioctl-1.21.0-linux-arm64.tar.gz -o "output.tar.gz" \
&& tar -xf ./output.tar.gz \
&& mv istioctl /usr/local/bin/ \
&& cd && rm -rf /tmp/*
COPY build/motd .
COPY build/starship/ .
COPY build/zsh/ .
COPY build/tmux/ .
WORKDIR /root