-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
165 lines (145 loc) · 5.59 KB
/
Copy pathDockerfile
File metadata and controls
165 lines (145 loc) · 5.59 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
FROM docker.io/library/ubuntu:noble AS kcat-builder
ENV DEBIAN_FRONTEND="noninteractive"
# https://github.com/edenhill/kcat/tags
# renovate: datasource=github-tags depName=kcat packageName=edenhill/kcat
ARG KCAT_VERSION=1.7.1
# https://github.com/confluentinc/libserdes/tags
# renovate: datasource=github-tags depName=libserdes packageName=confluentinc/libserdes
ARG LIBSERDES_VERSION=v8.3.0
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
cmake \
curl \
g++ \
gcc \
libcurl4-openssl-dev \
liblz4-dev \
libsasl2-dev \
libssl-dev \
libzstd-dev \
make \
perl \
pkg-config \
python3 \
zlib1g-dev \
&& \
mkdir -p /tmp/kcat-build && \
curl -fsSL "https://github.com/edenhill/kcat/archive/refs/tags/${KCAT_VERSION}.tar.gz" \
| tar -xz -C /tmp/kcat-build --strip-components=1 && \
cd /tmp/kcat-build && \
sed -i "s|github_download \"confluentinc/libserdes\" \"master\"|github_download \"confluentinc/libserdes\" \"${LIBSERDES_VERSION}\"|" bootstrap.sh && \
grep -F "github_download \"confluentinc/libserdes\" \"${LIBSERDES_VERSION}\"" bootstrap.sh && \
./bootstrap.sh --no-install-deps && \
install -m 0755 kcat /usr/local/bin/kcat && \
/usr/local/bin/kcat -V && \
apt-get clean && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
FROM docker.io/library/ubuntu:noble
LABEL org.opencontainers.image.authors="moulickaggarwal"
LABEL org.opencontainers.image.source="https://github.com/Moulick/debug-image"
LABEL org.opencontainers.image.title="debug-image"
ARG TARGETARCH
ARG TARGETOS
ARG TARGETPLATFORM
RUN echo "TARGETARCH: ${TARGETARCH}" && \
echo "TARGETOS: ${TARGETOS}" && \
echo "TARGETPLATFORM: ${TARGETPLATFORM}"
ENV DEBIAN_FRONTEND="noninteractive"
# Clean up APT when done.
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
gnupg \
ca-certificates \
postgresql-client \
mysql-client \
ncat \
telnet \
dnsutils \
iputils-ping \
nano \
redis-tools \
screen \
rsync \
python3 \
zip \
unzip \
jq \
groff \
less \
curl \
wget \
gettext \
openssl \
git \
parallel \
ssh \
iptables \
libsasl2-2 \
net-tools \
nmap \
iproute2 \
iputils-tracepath \
traceroute \
&& \
apt-get clean && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
COPY --chmod=0644 bashrc /root/.bashrc
COPY --from=kcat-builder /usr/local/bin/kcat /usr/local/bin/kcat
RUN ln -sf /usr/local/bin/kcat /usr/local/bin/kafkacat && \
kcat -V && \
kafkacat -V
COPY --from=ghcr.io/astral-sh/uv:0.11 /uv /uvx /bin/
RUN uv pip install --system --break-system-packages --no-cache-dir --upgrade s3cmd==2.4.0 python-magic
# https://download.docker.com/linux/static/stable/
# renovate: datasource=docker depName=docker packageName=docker versioning=docker
ENV DOCKER_VERSION=29.6.1
RUN curl -L "https://download.docker.com/linux/static/stable/$(uname -m)/docker-${DOCKER_VERSION}.tgz" \
| tar -zxvf - --strip 1 -C /usr/bin docker/docker
# https://github.com/aws/aws-cli/tags
# renovate: datasource=github-tags depName=aws-cli packageName=aws/aws-cli
ENV AWS_CLI_VERSION=2.35.13
RUN curl -lo awscliv2.zip "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m)-${AWS_CLI_VERSION}.zip" && \
unzip -q awscliv2.zip && \
./aws/install && \
rm -R awscliv2.zip ./aws && \
aws --version
# https://github.com/hatoo/oha/releases
# renovate: datasource=github-releases depName=oha packageName=hatoo/oha versioning=semver-coerced
ENV OHA_VERSION=v1.14.0
RUN curl -Lo /usr/local/bin/oha "https://github.com/hatoo/oha/releases/download/${OHA_VERSION}/oha-linux-${TARGETARCH}" && \
chmod +x /usr/local/bin/oha && \
oha --version
# https://github.com/mikefarah/yq/releases/
# renovate: datasource=github-releases depName=yq packageName=mikefarah/yq
ENV YQ_VERSION=v4.53.3
RUN curl -Lo /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_$TARGETARCH" && \
chmod +x /usr/local/bin/yq && \
yq --version
# https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
# renovate: datasource=github-releases depName=kubectl packageName=kubernetes/kubernetes
ENV KUBECTL_VERSION=v1.36.2
RUN curl -Lo /usr/local/bin/kubectl "https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/$TARGETARCH/kubectl" && \
chmod +x /usr/local/bin/kubectl && \
kubectl version --client=true
# https://github.com/helm/helm/releases
# renovate: datasource=github-releases depName=helm packageName=helm/helm
ENV HELM_VERSION=v4.2.2
RUN curl -L "https://get.helm.sh/helm-$HELM_VERSION-linux-$TARGETARCH.tar.gz" \
| tar -zxvf - --strip-components=1 -C /usr/local/bin linux-$TARGETARCH/helm && \
chmod +x /usr/local/bin/helm && \
helm version
# https://github.com/fullstorydev/grpcurl/releases
# renovate: datasource=github-releases depName=grpcurl packageName=fullstorydev/grpcurl
ENV GRPCURL_VERSION=v1.9.3
RUN GRPCURL_ARCH=$([ "${TARGETARCH}" = "amd64" ] && echo "x86_64" || echo "${TARGETARCH}") && \
curl -L "https://github.com/fullstorydev/grpcurl/releases/download/${GRPCURL_VERSION}/grpcurl_${GRPCURL_VERSION#v}_linux_${GRPCURL_ARCH}.tar.gz" \
| tar -zxvf - -C /usr/local/bin grpcurl && \
chmod +x /usr/local/bin/grpcurl && \
grpcurl --version
# https://github.com/kubernetes-sigs/kustomize/releases
# renovate: datasource=github-releases depName=kustomize packageName=kubernetes-sigs/kustomize
ENV KUSTOMIZE_VERSION=v5.8.1
RUN curl -L "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_${TARGETARCH}.tar.gz" \
| tar -zxvf - -C /usr/local/bin kustomize && \
chmod +x /usr/local/bin/kustomize && \
kustomize version