wtsi-hgi/triple-e

Name: triple-e

Owner: Wellcome Trust Sanger Institute - Human Genetics Informatics

Description: Docker and Docker Machine wrapper scripts for OS X

Created: 2014-11-25 14:55:35.0

Updated: 2015-12-14 16:50:42.0

Pushed: 2015-12-21 12:25:41.0

Homepage:

Size: 29

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Triple-E

Docker and Docker Machine wrapper script…sailing with a full complement of nautical puns.

Usage
3e [command]

Start or manage a Docker-aware environment. (Note that, within which, commands that make sense are aliased for convenience.)

ahoy [name]

Start the Docker host, if not already running, and enter into a Docker-aware environment (subshell). If no name is specified, then it will:

Within the subshell, you may exit by issuing the avast command (aliased with exit). Note that, if you run multiple subshells simultaneously (e.g., within tmux), then closing one will invalidate the others.

This is the default option and can be omitted.

avast

Within the Subshell Stop all running containers and shutdown the active machine.

Outside the Subshell Stop all running containers and shutdown every running machine.

yarr

Within the Subshell Display the active machine's IP address and the list (and status) of its running containers.

Outside the Subshell Show the available machines.

keelhaul

Kill all running containers on the active machine.

This option is only applicable within the subshell.

scuttle

Stop and remove all running containers and remove all images on the active machine.

This option is only applicable within the subshell.

Zsh Autocompletion

A tab completion function for Zsh can be found as _3e. This can be installed into your $fpath or as a plugin to Oh-My-Zsh.

Oh-My-Zsh Plugin Installation
  1. Create a 3e plugin directory in ~/.oh-my-zsh
  2. Copy/move/symlink _3e into this directory
  3. Add 3e to the plugins list in your .zshrc
License

Copyright (c) 2014, 2015 Genome Research Limited

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.