Skip to content

ymizushi/dtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dtt CircleCI

dtt is the text-mode interface for docker and kubectl command. the ui of dtt is inspired by vim, ranger and tig.

Install

pip install dtt

Linux user may install ncurses library header and recompile python binary like this

sudo apt-get install libncurses5-dev
pyenv uninstall 3.8.2
pyenv install 3.8.2

Usage

Usage: 
    dtt 
    dtt -k | --kubectl
    dtt -h | --help
    dtt -c | --config
Options:
    -k --kubectl             kubectl mode
    -h --help                Show this screen and exit.
    -c --config              Show config

A main usecase for dtt is to login container or pod with shell.

Exec dtt command and move to container with j or k key (like vim) and press Enter-key when you want to login the container or pod.

screenshot

You can exec another shell or command with X key when you select the container or pod.

Customize setting

Install below file on $HOME/.config/dtt/config.toml

[default]
  shell = "/bin/sh"
  logging_dir = "/tmp/dtt.log"
[default.kubectl]
  namespace = "sample-namespace"

you can set default shell, looging directory, and default k8s namespace.

Development

see README_DEV.md

About

dtt is the text-mode interface for docker and kubectl command.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages