fugu

command module
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2015 License: MIT Imports: 4 Imported by: 0

README

What is fugu?

  • fugu is a wrapper around docker run & build commands.
  • fugu loads arguments from a fugu.yml file and merges these arguments with cli options.
  • fugu is NOT an orchestration tool like fig.

Example

# fugu.yml (maybe stored next to Dockerfile)
image:  mattes/hello-world-nginx # mandatory
name:   hello-world-nginx
detach: true
publish:
  - 8080:80
$ fugu run -e VERY=nice # runs ...
docker run --detach --name="hello-world-nginx" --env="VERY=nice" --publish="8080:80" mattes/hello-world-nginx

All docker options are supported. See full documentation here.

Installation

# Mac OS X
curl -L https://github.com/mattes/fugu/releases/download/v0.1.7/fugu.v0.1.7.darwin.x86_64.tar.gz | tar xvz
mv fugu.v0.1.7.darwin.x86_64 /usr/local/bin/fugu
chmod +x /usr/local/bin/fugu

# Linux
curl -L https://github.com/mattes/fugu/releases/download/v0.1.7/fugu.v0.1.7.linux.x86_64.tar.gz | tar xvz
mv fugu.v0.1.7.linux.x86_64 /usr/local/bin/fugu
chmod +x /usr/local/bin/fugu

# from source, if you have GO installed
go get github.com/mattes/fugu

Why fugu?

We are working on developermail.io atm. The project uses a microservice architecture and consists of lots of docker images. During development a docker container is built, run and destroyed quite often. With fugu we can speed up this workflow, because all docker run arguments are stored in the fugu.yml file. We also used to put docker run statements in README.md, but the format wasn't consistent. Now fugu.yml is our second point of contact (after the Dockerfile itself), when looking at a new docker image somebody else created. We didn't want to use fig, because the set of containers we run during development changes often and we didn't want to have one fig.yml for every possible docker container combination.


Build Status GoDoc

Credits

Thanks to Thiago Lifter for his nice fugu fish logo.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/docker/docker/pkg/mflag
Package flag implements command-line flag parsing.
Package flag implements command-line flag parsing.
_workspace/src/github.com/mattes/yaml
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.
Package docker parses docker command line arguments and passes those args into config.Values
Package docker parses docker command line arguments and passes those args into config.Values
Package file parses YAML files and passes configuration into config.Values
Package file parses YAML files and passes configuration into config.Values

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL