Skip to content

Commit db40d69

Browse files
skitttpantelis
authored andcommitted
Revert to busybox nc for metricsproxy
nmap-ncat is causing issues in metricsproxy with globalnet: Ncat: Version 7.92 ( https://nmap.org/ncat ) Ncat: Listening on :::8081 Ncat: Listening on 0.0.0.0:8081 Ncat: Connection from 10.129.0.19. Ncat: Connection from 10.129.0.19:45064. Ncat: assertion failed: count <= INT_MAX QUITTING. It's not clear how to fix that, so this installs busybox and reverts to busybox nc instead. To avoid having too many changes in nettest, nmap-ncat is preserved for other uses. Signed-off-by: Stephen Kitt <[email protected]>
1 parent 009db10 commit db40d69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/Dockerfile.nettest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY scripts/shared/dnf_install /
99

1010
RUN /dnf_install -a ${TARGETPLATFORM} -v ${FEDORA_VERSION} -r /output/nettest \
1111
glibc bash glibc-minimal-langpack coreutils-single libcurl-minimal \
12-
bind-utils curl-minimal iperf3 iproute iputils netperf nmap-ncat tcpdump
12+
bind-utils busybox curl-minimal iperf3 iproute iputils netperf nmap-ncat tcpdump
1313

1414
FROM scratch
1515
ARG TARGETPLATFORM

scripts/nettest/metricsproxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

33
# Arguments: source-port target-IP target-port
4-
exec /usr/bin/ncat -v -lk -p "$1" -c "/usr/bin/ncat $2 $3"
4+
exec /usr/sbin/busybox nc -v -lk -p "$1" -e /usr/sbin/busybox nc "$2" "$3"

0 commit comments

Comments
 (0)