-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathDockerfile
31 lines (26 loc) · 1.12 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
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
WORKDIR /go/src/github.com/openshift/network-tools
COPY . .
# needed for ovnkube-trace
FROM registry.ci.openshift.org/ocp/4.19:ovn-kubernetes AS ovnkube-trace
# tools (openshift-tools) is based off cli
FROM registry.ci.openshift.org/ocp/4.19:tools
COPY --from=builder /go/src/github.com/openshift/network-tools/debug-scripts/ /opt/bin/
COPY --from=ovnkube-trace /usr/bin/ovnkube-trace /usr/bin/
# remove internal scripts from the image and create a symlink for network-tools and gather entrypoint for must-gather
RUN rm -rf /opt/bin/local-scripts && ln -s /opt/bin/network-tools /usr/bin/network-tools && ln -s /opt/bin/network-tools /usr/bin/gather
# Make sure to maintain alphabetical ordering when adding new packages.
RUN INSTALL_PKGS="\
bcc \
bcc-tools \
conntrack-tools \
iproute \
nginx \
numactl \
perf \
python3-bcc \
traceroute \
wireshark-cli \
" && \
yum -y install --setopt=tsflags=nodocs --setopt=skip_missing_names_on_install=False $INSTALL_PKGS && \
yum clean all && rm -rf /var/cache/*