1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00
Commit Graph

1209 Commits

Author SHA1 Message Date
Li Yi
1ae2b9f4e2 Support placement preferences in stack deployment
Move of moby/moby#32743

Signed-off-by: Li Yi <denverdino@gmail.com>
Upstream-commit: b3459936db
Component: cli
2017-05-09 07:00:45 +08:00
Daniel Nephin
1d522f8786 Merge pull request #27 from dnephin/more-linters
More linters and better circle-ci config
Upstream-commit: d844c487d4
Component: cli
2017-05-08 16:30:13 -04:00
Daniel Nephin
0285b89d9b Fix vendor.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: aa07c40069
Component: cli
2017-05-08 16:15:54 -04:00
Daniel Nephin
697719d81a Run steps in parallel.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 4aa65d9833
Component: cli
2017-05-08 15:57:56 -04:00
Daniel Nephin
5a1580a2fc Add line length linter
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: c31d25653f
Component: cli
2017-05-08 15:57:56 -04:00
Daniel Nephin
edf78faba7 Add interfacer linter
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 37ccc00d0e
Component: cli
2017-05-08 15:57:50 -04:00
Daniel Nephin
8e8e43c61a Merge pull request #28 from dmcgowan/remove-trust-key
Remove unused trust key
Upstream-commit: d9fde418c0
Component: cli
2017-05-08 15:16:24 -04:00
Daniel Nephin
0748b867ce Merge pull request #38 from tiborvass/dont_rm_build_folder
Makefile: on clean, delete files in the build folder, but not the folder
Upstream-commit: 5a4873c21a
Component: cli
2017-05-08 15:14:15 -04:00
Derek McGowan
f0517dfa96 Remove unused trust key
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
Upstream-commit: 515d0fd842
Component: cli
2017-05-08 11:49:40 -07:00
Tibor Vass
18fe518a33 Makefile: on clean, delete files in the build folder, but not the folder
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: 17311d3d1a
Component: cli
2017-05-08 11:24:40 -07:00
Gaetan
dbea31a457 Merge pull request #39 from tiborvass/rm_client
rm client and vendor it instead
Upstream-commit: 2a5d6c8aac
Component: cli
2017-05-08 11:14:06 -07:00
Gaetan de Villele
2ff5f1eac9 cli: gofmt + goimports
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
Upstream-commit: 295140edf2
Component: cli
2017-05-08 10:51:30 -07:00
Tibor Vass
82b8acb640 rm client and vendor it instead
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: 57230a7212
Component: cli
2017-05-08 10:33:56 -07:00
Gaetan
54cf1dbeb6 Merge pull request #40 from gdevillele/pr-update-ci
update circle.yml to fix CI
Upstream-commit: 4411f5c7e0
Component: cli
2017-05-08 10:32:04 -07:00
Gaetan de Villele
7b959e8107 update circle.yml
- update from docker:17.04 to docker:17.05
- install git and ssh to suppress CircleCI warning

Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
Upstream-commit: f35682a2f0
Component: cli
2017-05-08 10:25:30 -07:00
Tibor Vass
e21cee39a9 Merge pull request #11 from tiborvass/update-cli
Update cli folder with newer changes from moby/moby
Upstream-commit: a6feb55a48
Component: cli
2017-05-05 15:04:48 -07:00
Ian Campbell
d20f087fd4 Add docker build --iidfile=FILE
This is synonymous with `docker run --cidfile=FILE` and writes the digest of
the newly built image to the named file. This is intended to be used by build
systems which want to avoid tagging (perhaps because they are in CI or
otherwise want to avoid fixed names which can clash) by enabling e.g. Makefile
constructs like:

    image.id: Dockerfile
    	docker build --iidfile=image.id .

    do-some-more-stuff: image.id
    	do-stuff-with <image.id

Currently the only way to achieve this is to use `docker build -q` and capture
the stdout, but at the expense of losing the build output.

In non-silent mode (without `-q`) with API >= v1.29 the caller will now see a
`JSONMessage` with the `Aux` field containing a `types.BuildResult` in the
output stream for each image/layer produced during the build, with the final
one being the end product.  Having all of the intermediate images might be
interesting in some cases.

In silent mode (with `-q`) there is no change, on success the only output will
be the resulting image digest as it was previosuly.

There was no wrapper to just output an Aux section without enclosing it in a
Progress, so add one here.

Added some tests to integration cli tests.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
Upstream-commit: c3648a9c94
Component: cli
2017-05-05 12:12:36 -07:00
Tibor Vass
147da8e072 update vendor.conf
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: b141fa3799
Component: cli
2017-05-03 19:27:10 -07:00
Tibor Vass
9ce2cd0d41 Fix expected output in test due to linter-induced change on error string
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: 03a36f9d50
Component: cli
2017-05-03 19:26:45 -07:00
Tibor Vass
1b83577108 Update cli folder with newer changes from moby/moby
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: ae84e6dd5e
Component: cli
2017-05-03 19:25:17 -07:00
Daniel Nephin
f28f6fde81 Refacator pkg/streamformatter
StreamFormatter suffered was two distinct structs mixed into a single struct
without any overlap.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 779012af69
Component: cli
2017-05-03 18:49:14 -07:00
yupengzte
065585bc3c delete ineffectual assignment
Signed-off-by: yupengzte <yu.peng36@zte.com.cn>
Upstream-commit: 9ca78094b5
Component: cli
2017-05-03 18:49:14 -07:00
Flavio Crisciani
056c564996 Inroduce SWARM --data-path-addr flag
This new flag will allow the configuration of an interface that
can be used for data path traffic to be isolated from control
plane traffic. This flag is simply percolated down to libnetwork
and will be used by all the global scope drivers (today overlay)

Negative test added for invalid flag arguments

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
Upstream-commit: 169160ba63
Component: cli
2017-05-03 18:45:48 -07:00
Ying Li
8f4c7f862a Add the CACert parameter to the ExternalCA object in order to match
swarmkit's API type.  Make sure this parameter gets propagated to
swarmkit, and also add an extra option to the CLI when providing
external CAs to parse the CA cert from a file.

Signed-off-by: Ying Li <ying.li@docker.com>
Upstream-commit: 81f87595fe
Component: cli
2017-05-03 18:45:48 -07:00
Evan Hazlett
dae2aee5bb remove service runtime filter in stack command
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
Upstream-commit: 6665c9c747
Component: cli
2017-05-03 18:45:48 -07:00
Aaron Lehmann
9903b4cd8e cli: Correct command/image tests for testify
These tests were caught in the crossfire of the transition to testify.
testify has a few subtle differences from the similar custom framework
it replaced:

- Error behaves differently
- Equal takes its arguments in a different order

This PR also takes the opportunity to use a few shorthands from testify,
such as Len, True, and False.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 6f94ab98f5
Component: cli
2017-05-03 18:45:48 -07:00
Evan Hazlett
461a743521 move service runtime filter to server
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
Upstream-commit: 25809f8991
Component: cli
2017-05-03 18:44:11 -07:00
Vincent Demeester
fe666a9eff Fix docker run -it on windows
Signed-off-by: Vincent Demeester <vincent@demeester.fr>
Upstream-commit: c67589a52c
Component: cli
2017-05-03 18:41:19 -07:00
Boaz Shuster
772ad3f5fe Add format to docker stack ls
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
Upstream-commit: 5b6bd92862
Component: cli
2017-05-03 18:41:19 -07:00
Ignacio Capurro
8339598b82 Unit tests for cli/commands/image (except build and tag)
Signed-off-by: Ignacio Capurro <icapurrofagian@gmail.com>
Upstream-commit: e7793092a2
Component: cli
2017-05-03 18:40:22 -07:00
Dave Henderson
02642ac6f8 Output docker swarm join on a single line
This avoids issues when copy/pasting between different shells on
different OSes, which may not all support `\` as a continuation
character.

Fixes #32725

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Upstream-commit: 2b31a4bf8d
Component: cli
2017-05-03 17:46:41 -07:00
Daniel Nephin
09a02ca02d Set Composefile WorkingDir to dirname of the composefile.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: a1b7969bce
Component: cli
2017-05-03 17:46:40 -07:00
Colin Hebert
82e97b94dd Regenerate schema with the correct libraries
Signed-off-by: Colin Hebert <hebert.colin@gmail.com>
Upstream-commit: 9c02b38bec
Component: cli
2017-05-03 17:46:40 -07:00
Colin Hebert
979faf3831 Run go generate github.com/docker/docker/cli/compose/schema
Signed-off-by: Colin Hebert <hebert.colin@gmail.com>
Upstream-commit: 53b43f02e2
Component: cli
2017-05-03 17:46:40 -07:00
Colin Hebert
fed1be2dd6 Add support for labels during build with compose
Signed-off-by: Colin Hebert <hebert.colin@gmail.com>
Upstream-commit: a2c8291e1e
Component: cli
2017-05-03 17:46:40 -07:00
Dong Chen
752e3db428 do not allow duration less than 1 ms in healthcheck parameters
Signed-off-by: Dong Chen <dongluo.chen@docker.com>
Upstream-commit: a316b380e7
Component: cli
2017-05-03 17:46:40 -07:00
Brian Goff
0f7b433a23 Add logdrivers to /info
This is required for swarmkit to be able to filter based on log driver.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: c44e74e676
Component: cli
2017-05-03 17:46:39 -07:00
Antonio Murdaca
7a4be5671b remove --init-path from client
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream-commit: dea809813e
Component: cli
2017-05-03 17:46:39 -07:00
Gaetan
bdb1bed9c8 Merge pull request #24 from gdevillele/pr-add-build-status-badge
add CI build status badge to README
Upstream-commit: 1c0847b912
Component: cli
2017-05-03 14:32:46 -07:00
Gaetan de Villele
d186189ce5 add ci build status badge to readme
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
Upstream-commit: 92094372d3
Component: cli
2017-05-03 13:28:06 -07:00
Vincent Demeester
7b15b0b584 Merge pull request #23 from dnephin/fix-goimports-on-master
Fix goimports failure on master
Upstream-commit: b7d3dd4d41
Component: cli
2017-05-03 22:27:16 +02:00
Daniel Nephin
9afb137b84 Merge pull request #19 from dnephin/check-vendor
Check vendor
Upstream-commit: 328fa4b717
Component: cli
2017-05-03 16:01:56 -04:00
Daniel Nephin
d51e95efed Fix goimports failure on master.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 36a7842089
Component: cli
2017-05-03 15:58:39 -04:00
Daniel Nephin
5f4fc55626 Merge pull request #13 from dnephin/cleanup-post-docker-stin
Small build client cleanup handling dockerfile from stdin
Upstream-commit: c202b4b987
Component: cli
2017-05-03 15:45:41 -04:00
Daniel Nephin
3ca812826a Merge pull request #9 from gdevillele/pr-update-makefile
update Makefile
Upstream-commit: 589afd2f50
Component: cli
2017-05-03 15:43:26 -04:00
Vincent Demeester
df3bda7143 Merge pull request #20 from dnephin/more-lint
Add more lint checks
Upstream-commit: 9e413798bf
Component: cli
2017-05-03 20:53:30 +02:00
Gaetan de Villele
dfb4d9262a define targets as “phony”, add comments, and mount docker.sock in dev target
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
Upstream-commit: 7f7e842702
Component: cli
2017-05-03 11:14:06 -07:00
Daniel Nephin
9b62a84ca8 Add ineffassign linter.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: b86533c479
Component: cli
2017-05-02 17:57:46 -04:00
Daniel Nephin
dce23b177f Add gocycle lint
Whitelist some existing offenders, and use a high limit for now.
This limit should decrese over time.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 08af0f28c5
Component: cli
2017-05-02 17:57:46 -04:00
Daniel Nephin
8315ceea29 Add deadcode linter.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 8f73a12f9b
Component: cli
2017-05-02 17:57:46 -04:00