Skip to content

Commit

Permalink
Merge pull request #2 from sj-williams/add-capab
Browse files Browse the repository at this point in the history
add tcpdump capability, deployment manifest
  • Loading branch information
sj-williams authored Aug 29, 2023
2 parents 7bf0212 + 6ad2489 commit a5df6bc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ RUN mkdir -p /opt/your-folder && \
adduser --disabled-password nonRootUser -u 1001 && \
chown -R nonRootUser:nonRootUser /opt/your-folder

RUN setcap cap_net_raw+ep /usr/bin/tcpdump
RUN setcap cap_net_raw+ep /bin/ping

USER 1001

ENTRYPOINT ["tail", "-f", "/dev/null"]
17 changes: 17 additions & 0 deletions deployment/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: net-tools
spec:
replicas: 1
selector:
matchLabels:
app: net-tools
template:
metadata:
labels:
app: net-tools
spec:
containers:
- name: net-tools
image: sjwilliams80/docker-net-tools:latest

0 comments on commit a5df6bc

Please sign in to comment.