contrib/podex: update README

update usage
This commit is contained in:
Johan Euphrosine 2015-02-04 11:25:20 -08:00
parent b852cd2c80
commit 83638fdcf3

View File

@ -8,25 +8,22 @@ Manifests can then be edited by a human to match deployment needs.
## Usage ## Usage
``` ```
$ podex [-json|-yaml] [-id PODNAME] IMAGES... $ podex [-format json|yaml] [-type=pod|container] [-name PODNAME] IMAGES...
$ podex -json [-id PODNAME] IMAGES... > pod.json
$ podex -yaml [-id PODNAME] IMAGES... > pod.yaml
``` ```
### Options ### Options
- `id`: set the pod name (required with multiple images, optional with single image: default to image base name) - `format`: manifest format to output, `yaml` (default) or `json`
- `json`: puts the container manifest into JSON format - `json`: manifest type to output, `pod` (default) or `container`
- `yaml`: puts the container manifest into YAML format - `name`: manifest name (required with multiple images, optional with single image: default to image base name)
### Examples ### Examples
``` ```
$ podex -json google/nodejs-hello > pod.yaml $ podex google/nodejs-hello > pod-manifest.yaml
$ podex -yaml -id nodejs-nginx google/nodejs-hello nginx > pod.yaml $ podex -format json -type container -name nodejs-nginx google/nodejs-hello nginx > container-manifest.json
``` ```
## TODOs ## TODOs
- [ ] option generate a full pod manifest (w/ `desired state`)
- [ ] option to merge multiple container manifest into one pod - [ ] option to merge multiple container manifest into one pod
- [ ] docker run flags support - [ ] docker run flags support
- [ ] option to generate service bindings from links - [ ] option to generate service bindings from links