forked from openshift/network-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (21 loc) · 844 Bytes
/
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
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.17-openshift-4.11 AS builder
WORKDIR /go/src/github.com/openshift/network-tools
COPY . .
# needed for ovnkube-trace
FROM registry.ci.openshift.org/ocp/4.11:ovn-kubernetes AS ovnkube-trace
# tools (openshift-tools) is based off cli
FROM registry.ci.openshift.org/ocp/4.11:tools
COPY --from=builder /go/src/github.com/openshift/network-tools/debug-scripts/* /usr/bin/
COPY --from=ovnkube-trace /usr/bin/ovnkube-trace /usr/bin/
# Make sure to maintain alphabetical ordering when adding new packages.
RUN INSTALL_PKGS="\
nginx \
numactl \
traceroute \
wireshark \
conntrack-tools \
perf \
iproute \
" && \
yum -y install --setopt=tsflags=nodocs --setopt=skip_missing_names_on_install=False $INSTALL_PKGS && \
yum clean all && rm -rf /var/cache/*