-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
37 lines (29 loc) · 1.01 KB
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
FROM ubuntu:noble-20250127
ENV YQ="4.29.2"
ENV KUBECTL="1.30.0"
# install packages
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
bind9-dnsutils \
iputils-ping \
jq \
git \
nmap \
openssh-client \
tree \
vim-tiny \
wget \
netcat-openbsd \
software-properties-common
RUN add-apt-repository ppa:fish-shell/release-3 && apt-get update && apt-get install -y --no-install-recommends fish && rm -rf /var/lib/apt/lists/*
# Config ca-certificates for wget
RUN echo "ca_certificate=/etc/ssl/certs/ca-certificates.crt" > $HOME/.wgetrc
# kubectl
RUN curl -L https://dl.k8s.io/release/v${KUBECTL}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl
# yq
RUN wget https://github.com/mikefarah/yq/releases/download/v${YQ}/yq_linux_amd64 -O /usr/local/bin/yq && \
chmod +x /usr/local/bin/yq
# RUN echo `export PS1="\e[0;32m[\u@\h \W]\$ \e[m "` >> /root/.profile
# && echo export PS1="\e[0;32m[\u@\h \W]\$ \e[m " >> /root/.bashrc