Skip to content

Commit

Permalink
Merge pull request #3 from duyhenryer/feat/tools
Browse files Browse the repository at this point in the history
Add more tools
  • Loading branch information
duyhenryer authored Jun 12, 2024
2 parents 9f0171b + cdde906 commit 811603f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PR-Build

run-name: PR Build Image

on:
pull_request:
branches: ['main']

jobs:
pr-build:
# https://github.com/actions/runner-images
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,amd64
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Run Buildx
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--output "type=image,push=false" \
--file ./Dockerfile .
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ RUN apk add --no-cache --update \
bind-tools \
busybox-extras \
lz4 zstd \
vim
vim \
openssl \
ipset \
ripgrep
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,19 @@ kubectl exec -it nettools -n default bash

```sh
docker run -it ghcr.io/duyhenryer/nettools:2.0.1 sh
```

#### Sample Use-cases

`tcpdump` is a powerful and common packet analyzer that runs under the command line.
It allows the user to display TCP/IP and other packets being transmitted or received over an attached network interface.

```sh
tcpdump -i eth0 port 9999 -c 1 -Xvv
```
More info on tcpdump can be found [here](http://www.tcpdump.org/tcpdump_man.html).

`netstat` is a useful tool for checking your network configuration and activity.
```sh
netstat -tulpn
```

0 comments on commit 811603f

Please sign in to comment.