-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) · 1.35 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
FROM alpine:3.19.1
LABEL org.opencontainers.image.authors="Open Telekom Cloud <[email protected]> <[email protected]>"
LABEL org.opencontainers.image.description="debug container"
LABEL org.opencontainers.image.title="debug-container"
LABEL org.opencontainers.image.source="https://github.com/opentelekomcloud-community/debug-container"
LABEL org.opencontainers.image.base.name="alpine:3.19.1"
LABEL org.opencontainers.image.docker.cmd="docker run -it ghcr.io/opentelekomcloud-community/debug-container:main"
LABEL opg.opencontainers.image.kubectl.cmd="kubectl debug -it $pod --image=ghcr.io/dombisza/cce-debug:main -n$namespace"
LABEL org.opencontainers.image.docker.build.cmd="docker build --no-cache=true --tag ${image_name} ."
ENV CERT_PKG="ca-certificates openssl"
ENV GENERIC_PKG="bash bash-completion tmux tree"
ENV NETWORK_PKG="nmap tcpdump iperf3 tcptraceroute iputils bind-tools curl wget inetutils-telnet netcat-openbsd"
ENV CODE_PKG="vim git jq make"
ENV DEBUG_PKG="htop stress-ng strace iftop iotop sysstat"
ENV KUBECTL_V="v1.28.12"
RUN apk update && \
apk add --no-cache \
${CERT_PKG} \
${GENERIC_PKG} \
${NETWORK_PKG} \
${CODE_PKG} \
${DEBUG_PKG}
RUN curl -LO "https://dl.k8s.io/release/${KUBECTL_V}/bin/linux/amd64/kubectl" && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
ENTRYPOINT ["/bin/bash"]