Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jhadvig committed Nov 11, 2014
1 parent 77d2815 commit e0c8d53
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions contrib/podex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@ Manifests can then be edited by a human to match deployment needs.

## Usage
```
$ docker pull google/nodejs-hello
$ podex -yaml google/nodejs-hello > pod.yaml
$ podex -json google/nodejs-hello > pod.json
$ podex [-json|-yaml] [-id PODNAME] IMAGES...
$ podex -json [-id PODNAME] IMAGES... > pod.json
$ podex -yaml [-id PODNAME] IMAGES... > pod.yaml
```

### Options
- `id`: set the pod name (required with multiple images, optional with single image: default to image base name)
- `json`: puts the container manifest into JSON format
- `yaml`: puts the container manifest into YAML format

### Examples
```
$ podex -json google/nodejs-hello > pod.yaml
$ podex -yaml -id nodejs-nginx google/nodejs-hello nginx > pod.yaml
```

## TODOs
Expand Down
Binary file added contrib/podex/podex
Binary file not shown.
2 changes: 1 addition & 1 deletion contrib/podex/podex.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
"gopkg.in/v1/yaml"
)

const usage = "usage: podex [-json|-yaml] -id=ID username/image1 ... username/imageN"
const usage = "usage: podex [-json|-yaml] [-id PODNAME] IMAGES"

var generateJSON = flag.Bool("json", false, "generate json manifest")
var generateYAML = flag.Bool("yaml", false, "generate yaml manifest")
Expand Down

0 comments on commit e0c8d53

Please sign in to comment.