docker-masquerade is a collection of shim scripts that run commands in docker
containers instead of natively. This makes it easier to move into a new machine - install the ZSH plugin, and docker
will automagically download the container image the first time you use a given shim script.
Name | Description | Credits |
---|---|---|
c-mosquitto_pub |
Runs mosquitto_pub in a container. |
Mine |
c-mosquitto_sub |
Runs mosquitto_sub in a container. |
Mine |
c-influxdb |
Run influxdb tool in a container. |
Mine |
You must have docker
installed on your machine to use the tool scripts in this repository.
If you're using zgen:
- Add
zgen load unixorn/docker-masquerade
to your.zshrc
along with your otherzgen load
commands. zgen reset && zgen save
If you're using Antigen:
- Add
antigen bundle unixorn/docker-masquerade
to your.zshrc
where you've listed your other plugins. - Close and reopen your Terminal/iTerm window to refresh context and use the plugin. Alternatively, you can run
antigen bundle unixorn/docker-masquerade
in a running shell to haveantigen
load the new plugin.
If you're using oh-my-zsh:
-
In the command line, change to oh-my-zsh's custom plugin directory :
cd ~/.oh-my-zsh/custom/plugins/
-
Clone the repository into a new
docker-masquerade
directory:git clone https://github.com/unixorn/docker-masquerade.git docker-masquerade
-
Edit your
~/.zshrc
and adddocker-masquerade
โ same as clone directory โ to the list of plugins to enable:plugins=( ... docker-masquerade )
-
Then, restart your terminal application to refresh context and use the plugin. Alternatively, you can source your current shell configuration:
source ~/.zshrc
Nothing here actually requires you to use ZSH or zgen, that's just a convenient distribution method for anyone using a ZSH framework.
If you aren't using any ZSH frameworks, or if you're using bash
, fish
or another shell, do the following steps:
git clone
this repository- Add
cloneDirectory/bin
to your$PATH
in your shell's startup file.