File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 22 go build -o cmd/kubectl-nginx_supportpkg
33
44debugger :
5- docker buildx build --platform linux/amd64 -t nginx-debugger -f nginx-debugger/Dockerfile .
5+ docker buildx build --build-context project=nginx-debugger --platform linux/amd64 -t nginx-debugger -f nginx-debugger/Dockerfile .
6+ # docker tag nginx-debugger:latest mrajagopal/f5-utils:latest
7+ # docker push mrajagopal/f5-utils:latest
68
79install : build
810 sudo cp cmd/kubectl-nginx_supportpkg /usr/local/bin
Original file line number Diff line number Diff line change 11FROM alpine:latest
2+ COPY --chmod=744 --from=project api_stats.sh /root/api_stats.sh
23
3- RUN apk --update add bind-tools curl netcat-openbsd iproute2 iperf bash && rm -rf /var/cache/apk/* \
4+ RUN apk --update add bind-tools curl netcat-openbsd iproute2 iperf tcpdump tshark bash jq \
5+ && rm -rf /var/cache/apk/* \
46 && ln -s /usr/bin/iperf /usr/local/bin/iperf \
57 && ls -altrh /usr/local/bin/iperf
68
7- ADD https://github.com/coredns/coredns/releases/download/v1.11.4/coredns_1.11.4_linux_amd64.tgz /coredns.tgz
8- RUN tar -xzvf /coredns.tgz && rm -f /coredns.tgz
9+ # Setting User and Home
10+ USER root
11+ WORKDIR /root
12+ ENV HOSTNAME=nginx-utils
913
1014CMD ["bash" ]
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ for i in /api/8/processes /api/8/connections /api/8/slabs /api/8/http/requests /api/8/http/server_zones /api/8/http/location_zones /api/8/http/caches /api/8/http/upstreams /api/8/http/keyvals; do
3+ echo " **** $i ****" ;
4+ curl -s " 127.0.0.1:8080/$i " | jq . ;
5+ echo " " ;
6+ done
You can’t perform that action at this time.
0 commit comments