diff --git a/Dockerfile b/Dockerfile index f42f21b..89f7bbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,6 +88,10 @@ COPY --from=fetcher /tmp/grpcurl /usr/local/bin/grpcurl # Installing fortio COPY --from=fetcher /tmp/fortio /usr/local/bin/fortio +# Installing skbdump +COPY --from=fetcher /tmp/skbdump /usr/local/bin/skbdump + + # Setting User and Home USER root WORKDIR /root diff --git a/build/fetch_binaries.sh b/build/fetch_binaries.sh index d87f8e2..471a1d4 100755 --- a/build/fetch_binaries.sh +++ b/build/fetch_binaries.sh @@ -78,9 +78,25 @@ get_fortio() { } +get_skbdump() { + VERSION=$(get_latest_release jschwinger233/skbdump | sed -e 's/^v//') + if [ "$ARCH" == "amd64" ]; then + LINK="https://github.com/jschwinger233/skbdump/releases/download/v${VERSION}/skbdump_${VERSION}_linux_${ARCH}.tar.gz" + + wget "$LINK" -O /tmp/skbdump.tar.gz && \ + tar -zxvf /tmp/skbdump.tar.gz && \ + mv "skbdump" /tmp/skbdump && \ + chmod +x /tmp/skbdump + else + echo "skbdump not available for architecture ${ARCH}, skipping." > /tmp/skbdump + chmod +x /tmp/skbdump + fi +} + get_ctop get_calicoctl get_termshark get_grpcurl get_fortio +get_skbdump