Skip to content

Commit

Permalink
#18 Provide tooling for debugging images
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanemerson committed Dec 12, 2019
1 parent 9fea2a8 commit 2df85de
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,22 @@ The entrypoint for the image is `modules/runtimes/added/bin/launch.sh`, which is
[ConfigGenerator](https://github.com/infinispan/infinispan-image-artifacts/tree/master) program to generate the server
configuration based upon the user supplied yaml files, before then launching the server.

### Provided Tools
In order to keep the image's size as small as possible, we utilise the [ubi-minimal](https://developers.redhat.com/products/rhel/ubi/) image. Consequently, the image does not provide all of the tools that are commonly available in linux distributions.
Below is a list of common tools/recipes that are useful for debugging.

| Task | Command |
| ---- | ------- |
| Text editor | vi |
| Get the PID of the java process | ps -fC java |
| Get socket/file information | lsof |
| List all open files excluding network sockets | lsof |grep -v "IPv[46]" |
| List all TCP sockets | ss -t -a |
| List all UDP sockets | ss -u -a |
| Network configuration | ip |
| Show unicast routes | ip route |
| Show multicast routes | ip maddress |

## Kubernetes

### Liveness and Readiness Probes
Expand Down
5 changes: 5 additions & 0 deletions modules/dependencies/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ version: 1.0
packages:
install:
- bsdtar
- findutils
- iproute
- java-11-openjdk-headless
- lsof
- openssl
- procps-ng
- vim-minimal

execute:
- script: install.sh

0 comments on commit 2df85de

Please sign in to comment.