GithubHelp home page GithubHelp logo

unixorn / docker-masquerade Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 18 KB

ZSH Plugin full of shim scripts that run commands in docker containers instead of natively

License: Apache License 2.0

Shell 100.00%
zsh-plugin docker

docker-masquerade's Introduction

Table of Contents

docker-masquerade

Status

License CircleCI GitHub stars Code Climate Issue Count GitHub last commit (branch)

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.

Contents

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

Installation

Pre-requisites

You must have docker installed on your machine to use the tool scripts in this repository.

zgen

If you're using zgen:

  1. Add zgen load unixorn/docker-masquerade to your .zshrc along with your other zgen load commands.
  2. zgen reset && zgen save

Antigen

If you're using Antigen:

  1. Add antigen bundle unixorn/docker-masquerade to your .zshrc where you've listed your other plugins.
  2. 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 have antigen load the new plugin.

oh-my-zsh

If you're using oh-my-zsh:

  1. In the command line, change to oh-my-zsh's custom plugin directory :

    cd ~/.oh-my-zsh/custom/plugins/

  2. Clone the repository into a new docker-masquerade directory:

    git clone https://github.com/unixorn/docker-masquerade.git docker-masquerade

  3. Edit your ~/.zshrc and add docker-masquerade โ€“ same as clone directory โ€“ to the list of plugins to enable:

    plugins=( ... docker-masquerade )

  4. Then, restart your terminal application to refresh context and use the plugin. Alternatively, you can source your current shell configuration:

    source ~/.zshrc

Bash / Manual Installation

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:

  1. git clone this repository
  2. Add cloneDirectory/bin to your $PATH in your shell's startup file.

docker-masquerade's People

Contributors

unixorn avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.