DockerCLI/command/stack
Yong Tang 0cb01799e9 Allow `docker deploy` command accept filename with/without extension
This fix tries to address the issue raised in 25855 where the command
`docker deploy` can only accept a STACK without extension of `.dab`.
In other words, `docker deploy hellojavaee.dab` gives an error:
```
Bundle hellojavaee.dab.dab not found. Specify the path with --file
```

This fix updates the way namespace STACK is taken so that in case
`STACK.dab` is provided with `docker deploy`:
```
$ docker deploy STACK.dab
```
The `STACK` is used as namespace (instead of `STACK.dab`).

NOTE: This fix will only allows `.dab` extension in namespace, because
it is not possible to have a namespace with `.` in the middle. In other
words, a namespace `hello.java.ee` will not work anyway (whether the file
`hello.java.ee` exists or not).

An additional integration test has been added to cover the changes.

This fix fixes 25855.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-10-14 11:44:15 -07:00
..
cmd.go Make all the experimental subcommand consistent. 2016-09-19 16:27:23 -04:00
cmd_experimental.go add `docker stack ls` 2016-09-22 19:31:39 +00:00
common.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
config.go Replace api/client imports with cli/command in experimental files. 2016-09-08 15:46:48 -04:00
deploy.go Allow `docker deploy` command accept filename with/without extension 2016-10-14 11:44:15 -07:00
list.go add `docker stack ls` 2016-09-22 19:31:39 +00:00
opts.go Replace api/client imports with cli/command in experimental files. 2016-09-08 15:46:48 -04:00
ps.go Replace api/client imports with cli/command in experimental files. 2016-09-08 15:46:48 -04:00
remove.go Replace api/client imports with cli/command in experimental files. 2016-09-08 15:46:48 -04:00
services.go add `docker stack ls` 2016-09-22 19:31:39 +00:00