An open API service indexing awesome lists of open source software.

https://github.com/pgschk/alpine-toolkit

An alpine docker image with some debugging tools
https://github.com/pgschk/alpine-toolkit

alpine container-image debugging-tool docker-image toolkit

Last synced: 5 months ago
JSON representation

An alpine docker image with some debugging tools

Awesome Lists containing this project

README

          

[![Container CI](https://github.com/pgschk/alpine-toolkit/actions/workflows/publish-container.yml/badge.svg)](https://github.com/pgschk/alpine-toolkit/actions/workflows/publish-container.yml)
![GitHub release (with filter)](https://img.shields.io/github/v/release/pgschk/alpine-toolkit)

# Alpine Toolkit

An alpine container with some debugging tools installed. For every release there is a normal container that includes only the essentials, as well as an extended container, which includes more tools at the cost of size.

## Included tools

The following tools are currently included in Docker image `pgschk/alpine-toolkit:latest`:

- telnet
- netcat
- curl
- tcpdump

## Extended images

Additionally there is an extended image, which includes more tools at the cost of being larger.
The image `pgschk/alpine-toolkit:latest-extended` additionally includes:

- mosquitto-clients (mosquitto_sub, mosquitto_pub)
- strace

## Add additional tools

To add more packages, build the container with the build argument "EXTRA_PACKAGES" set to a list of [Alpine packages](https://pkgs.alpinelinux.org/packages):

```sh
docker buildx build --build-arg EXTRA_PACKAGES="mosquitto-clients" -t alpine-toolkit:local .
```

## Use as Kubernetes debug

You can use `kubectl debug` to attach the container to an existing pod to get access to the debugging tools.

### Example

We will assume that our pod is named "my-pod" with a container "my-container", which we want to attach to:

```sh
kubectl debug -it my-pod --image=pgschk/alpine-toolkit --target=mycontainer
```