Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build and Push Multi-Arch Docker Image

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
Expand Down Expand Up @@ -48,3 +49,14 @@ jobs:
tags: |
${{ secrets.DOCKER_USERNAME }}/net-utils:latest
ghcr.io/${{ github.repository_owner }}/net-utils:latest

- name: Delete untagged images from GHCR
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/delete-package-versions@v4
with:
package-name: 'net-utils'
package-type: 'container'
min-versions-to-keep: 5
delete-only-untagged-versions: 'true'
env:
TOKEN: ${{ secrets.GH_PAT }}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apk update && apk add --no-cache \
netcat-openbsd \
bind-tools \
openssl \
nmap \
bash

CMD ["/bin/bash"]
19 changes: 18 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,25 @@ The image includes the following tools:
- `openssl` – Toolkit for SSL/TLS and general cryptography
- `dig` – DNS lookup utility
- `nslookup` – DNS query tool
- `nmap` – Network mapping and port scanning utility

## Usage in Kubernetes
## Usage

### Running as a Docker Container

You can run this image directly using Docker:

```sh
docker run -it rdev2021/net-utils:latest
```

Or with a specific command:

```sh
docker run -it rdev2021/net-utils:latest curl https://example.com
```

### Usage in Kubernetes

You can use this image as a temporary debug pod in a Kubernetes cluster.

Expand Down
Loading