Skip to content

Commit 3ab460c

Browse files
committed
Add grpcurl
1 parent f995092 commit 3ab460c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

network/Dockerfile.network

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
FROM fullstorydev/grpcurl as grpcurl
2+
13
FROM alpine
24

5+
USER root
6+
37
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
48

59
LABEL org.opencontainers.image.source https://github.com/kameshsampath/kube-dev-utils
@@ -9,4 +13,15 @@ RUN apk upgrade \
913
&& apk add --update --no-cache py-pip \
1014
&& pip3 install --upgrade pip setuptools httpie \
1115
&& apk add --update --no-cache wget curl net-tools tcpdump iputils nmap arp-scan bind-tools \
12-
rm -rf /root/.cache
16+
rm -rf /root/.cache
17+
18+
COPY --from=grpcurl /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
19+
COPY --from=grpcurl /etc/passwd /etc/passwd
20+
COPY --from=grpcurl /bin/grpcurl /bin/grpcurl
21+
22+
# create non-privileged group and user
23+
RUN addgroup -S dev-user && adduser -S dev-user -G dev-user
24+
25+
USER dev-user
26+
27+
CMD ["/bin/sh","-c","tail","-f","/dev/null"]

0 commit comments

Comments
 (0)