Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 2.91 KB

readme.org

File metadata and controls

65 lines (46 loc) · 2.91 KB

Emacs docker / docker compose plugin using magit-popups

Tools for working with docker and docker-compose locally

![Container Selector](/preview.gif?raw=true “Helm container selection”)

Contributing ==

Consider putting this pre commit hook to run the tests before placing a PR. You will need drone-cli to run these locally.

Emacs config / Extending

Add your own testing command, or add extra functionality to any popup

(magit-define-popup-action 'docker-tests-popup ?w "testing" (dc-call-compose-ps))
(message "%s" finder-known-keywords)
(add-to-list 'load-path "~/.emacs/dc/")
(load "dc-popups")

Set spacemacs launcher keys

(evil-leader/set-key "d" 'dc-popups-docker-compose)
(evil-leader/set-key "D" 'dc-popups-docker)

Compose functions

(dc-popups-compose-names)
(dc-popups-docker-run-return "" "config" "--services" "")

Docker functions

List of detected containers

(dc-popups-docker-names)

Select a container, and store result in dc-popups-current-docker-container

(setq dc-popups-current-docker-container (completing-read "Select container:" (dc-popups-docker-names)))