Sign inSign up

iankoulski/do-htop

By iankoulski

•Updated about 2 years ago

[htop](https://htop.dev) container based on the [do-framework](https://bit.ly/do-framework)

Image
Developer tools
Monitoring & observability
0

1.4K

iankoulski/do-htop repository overview

⁠do-htop⁠

A depend-on-docker⁠ htop⁠ container, based on Alpine linux⁠ and the do-framework⁠

⁠Usage

Run locally using docker:

docker run -it --rm iankoulski/do-htop htop

Run on Kubernetes using kubectl:

kubectl apply -f https://bit.ly/do-htop-daemonset

When running on Kubernetes, to view metrics, run:

kubectl exec -it $(kubectl get pods | grep htop | head -n 1 | cut -d ' ' -f 1) -- htop

⁠Details

This project is configured with defaults which work in most cases. To change the default settings, execute ./config.sh or just edit the .env file. One of the settings in the project is the target orchestrator TO. This setting configures the container to run locally using docker, or on a kubernetes cluster, using kubectl. Switching to a different orchestrator is as simple as configuring the TO setting.

The project contains the following scripts:

  • config.sh - open the configuration file .env in an editor so the project can be customized
  • build.sh - build the container image
  • test.sh - run container unit tests
  • push.sh - push the container image to a registry
  • pull.sh - pull the container image from a registry
  • run.sh [cmd] - run the container, passing an argument overrides the default command
  • status.sh - show container status - running, exited, etc.
  • logs.sh - tail container logs
  • exec.sh [cmd] - open a shell or execute a specified command in the running container

⁠License

Please see the LICENSE⁠ file for details.

⁠References

Tag summary

Content type

Image

Digest

sha256:948fe7f44…

Size

6.5 MB

Last updated

about 2 years ago

docker pull iankoulski/do-htop