moby--moby/cli/command
Yong Tang 1e9d04c458 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
..
bundlefile Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
checkpoint Make all the experimental subcommand consistent. 2016-09-19 16:27:23 -04:00
commands Merge pull request #26716 from dnephin/move-system-commands 2016-09-20 15:54:01 +02:00
container Merge pull request #26819 from ripcurld00d/fix_stats_mutex 2016-10-13 17:38:22 -07:00
formatter Merge pull request #26819 from ripcurld00d/fix_stats_mutex 2016-10-13 17:38:22 -07:00
idresolver Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
image better prune and system df 2016-10-11 00:42:21 +08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network Use ListOpt for `docker network create --label` and `docker volume create --label` 2016-10-12 16:06:34 -07:00
node add \n in engine labels display in docker node inspect xxx --pretty 2016-09-29 18:17:54 +08:00
plugin Make all the experimental subcommand consistent. 2016-09-19 16:27:23 -04:00
prune better prune and system df 2016-10-11 00:42:21 +08:00
registry Move the search command to the registry package. 2016-09-19 13:28:15 -04:00
service Merge pull request #26697 from allencloud/change-service-scale-logic 2016-09-30 18:37:35 +02:00
stack Allow `docker deploy` command accept filename with/without extension 2016-10-14 11:44:15 -07:00
swarm Let swarmkit handle cluster defaults in `swarm init` if not specified 2016-09-27 04:19:38 -07:00
system better prune and system df 2016-10-11 00:42:21 +08:00
task Fix partial/full filter issue in `service tasks --filter` 2016-09-26 16:01:20 -07:00
volume Use ListOpt for `docker network create --label` and `docker volume create --label` 2016-10-12 16:06:34 -07:00
cli.go Remove RetrieveAuthConfigs 2016-09-09 15:50:01 -04:00
events_utils.go Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00
in.go Fix the incorrect description for NewInStream 2016-10-13 22:33:09 +08:00
out.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
registry.go Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00