dockerbox is a single executable that runs docker containers based on local and remote run configurations.
go get github.com/beenverifiedinc/dockerbox
Add dockerbox to your path
export PATH=$PATH:$HOME/.dockerbox/bin/
Add a registry.yaml file to $HOME/.dockerbox/registry.yaml
repos:
- name: local
path: $HOME/.dockerbox/local.yaml
type: file
- name: example
path: https://raw.githubusercontent.com/BeenVerifiedInc/dockerbox/master/example/example.yaml
type: urladd a local config to $HOME/.dockerbox/local.yaml
applets:
kubectl:
name: kubectl
image: beenverifiedinc/kubectl
image_tag: 1.7.11
entrypoint: kubectl
environment:
- KUBECONFIG=/root/.kube/config
volumes:
- $HOME/.kube:/root/.kube
- $PWD:/app
work_dir: /appTo update your applet cache ($HOME/.dockerbox/.cache.yaml) from all the repos in the registry run dockerbox update.
To see the list of available applets run dockerbox list
And to install an applet run dockerbox install -i <applet name> or dockerbox install -a to install all available applets. dockerbox installs applets by creating a symlink from $HOME/.dockerbox/<applet name> to the dockerbox binary $GOPATH/bin/dockerbox.
Full applet spec:
namestringwork_dirstringentrypointstringrestartstringnetworkstringrmbool (defaults true)ttybool (defaults true)interactivebool (defaults true)privilegedbooldetachboolkillbool (kills running container with the same name before running)environmentlistvolumeslistportslistenv_filelistdependencieslist (list of applets to run first)linkslistimagestringimage_tagstringcommandlist
Usage:
dockerbox [command]
Available Commands:
help Help about any command
install install docker applet
list list all available applets in the repo
uninstall uninstall docker applet
update update the repo from the registry configs