-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
91 lines (74 loc) · 1.85 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
FROM bitnami/kubectl:1.29.11 AS kubectl
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y locales
RUN locale-gen \
en_US.UTF-8 &&\
update-locale LANG=en_US.UTF-8
ENV LANG=en_US.UTF-8
RUN apt-get -y install \
acl \
apt-transport-https \
bash-completion \
bc \
binutils \
curl \
dnsutils \
dstat \
git \
gnupg2 \
htop \
iperf3 \
iproute2 \
iptables \
iputils-ping \
jq \
less \
lshw \
lsof \
man \
mysql-client \
nano \
netcat \
netcat-openbsd \
nmap \
p7zip-full \
postgresql-client \
psmisc \
pv \
redis-tools \
rsync \
socat \
strace \
sudo \
sysstat \
tcpdump \
telnet \
tig \
traceroute \
tree \
vim \
wget
# Install MongoSH
RUN curl -fsSL https://pgp.mongodb.com/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor && \
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" > /etc/apt/sources.list.d/mongodb-org-7.0.list && \
apt-get update && \
apt-get -y install mongodb-mongosh
# Install Kubectl
COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/
# Install Azure CLI
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
# Install Temporal CLI
RUN curl -sSf https://temporal.download/cli.sh | bash
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN adduser --disabled-password --gecos "ubuntu" ubuntu && \
adduser ubuntu sudo && \
echo "ubuntu ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \
touch /home/ubuntu/.sudo_as_admin_successful && \
chown -R root:sudo /usr/local
RUN cp /home/ubuntu/.bashrc /root/.bashrc
WORKDIR /home/ubuntu
ENV TERM=xterm-256color
USER ubuntu