1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command/stack
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
..
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
config.go
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
ps.go
remove.go
services.go add docker stack ls 2016-09-22 19:31:39 +00:00