-
Notifications
You must be signed in to change notification settings - Fork 385
/
Dockerfile
58 lines (56 loc) · 1.44 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
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
WORKDIR /go/src/github.com/openshift/oc
COPY . .
RUN make build --warn-undefined-variables
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
COPY --from=builder /go/src/github.com/openshift/oc/oc /usr/bin/
RUN for i in kubectl openshift-deploy openshift-docker-build openshift-sti-build openshift-git-clone openshift-manage-dockerfile openshift-extract-image-content openshift-recycle; do ln -sf /usr/bin/oc /usr/bin/$i; done
RUN INSTALL_PKGS="\
bash-completion \
bc \
bind-utils \
blktrace \
crash \
e2fsprogs \
ethtool \
file \
fio \
git \
glibc-utils \
gzip \
hwloc \
iotop \
iproute \
iputils \
jq \
less \
ltrace \
net-tools \
nmap-ncat \
parted \
pciutils \
procps-ng \
psmisc \
perf \
python3 \
sos \
s-nail \
strace \
stress-ng \
sysstat \
tcpdump \
tmux \
util-linux \
vim-enhanced \
wget \
xfsprogs \
" && \
yum -y install $INSTALL_PKGS && rpm -V --nosize --nofiledigest --nomtime --nomode $INSTALL_PKGS && yum clean all && rm -rf /var/cache/*
# Disabled until they are buildable on s390x
# numactl \
# numactl-devel \
CMD ["/usr/bin/bash"]
LABEL io.k8s.display-name="OpenShift Tools" \
io.k8s.description="Contains debugging and diagnostic tools for use with an OpenShift cluster." \
io.openshift.build.versions="kubectl=1.31.1" \
io.openshift.tags="openshift,tools"