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 2
2
go build -o cmd/kubectl-nginx_supportpkg
3
3
4
4
debugger :
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
6
8
7
9
install : build
8
10
sudo cp cmd/kubectl-nginx_supportpkg /usr/local/bin
Original file line number Diff line number Diff line change 1
1
FROM alpine:latest
2
+ COPY --chmod=744 --from=project api_stats.sh /root/api_stats.sh
2
3
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/* \
4
6
&& ln -s /usr/bin/iperf /usr/local/bin/iperf \
5
7
&& ls -altrh /usr/local/bin/iperf
6
8
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
9
13
10
14
CMD ["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