Commit Graph

4857 Commits

Author SHA1 Message Date
Justin Cormack cf32d01be1
Merge pull request #89 from chris-crone/docs-cli-ux
Add CLI UX docs
2020-05-14 13:16:31 +01:00
Christopher Crone 44712ab3c4 Move CLI UX docs into folder
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-14 13:29:11 +02:00
Justin Cormack dac5558885 Initial CLI notes for context and run
Some things undecided still, and more commands needed.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2020-05-14 13:27:43 +02:00
Ulysses Souza a98acafeee Give more time to github actions to run it
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-14 13:01:05 +02:00
Ulysses Souza 4377bceb70
Merge pull request #87 from ulyssessouza/add-run-output
Test output of `docker run`
2020-05-14 11:06:14 +02:00
Djordje Lukic 6486f199e2 Add multierror
docker/api/multierror wraps go-multierror from hashicorp with
our default error formating
2020-05-13 18:37:41 +02:00
Ulysses Souza 323601865d Test output of `docker run`
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-13 17:09:18 +02:00
Djordje Lukic 2d14bfeb38
Merge pull request #85 from ulyssessouza/add-run-output
WIP - Missing e2e - Print container name when successful
2020-05-13 14:30:58 +02:00
Guillaume Tardif 67a7c96dc4
Merge pull request #84 from rumpl/chore-remove-util
Remove util package, it was only used  by cli/main.go
2020-05-13 14:23:36 +02:00
Djordje Lukic 53bc852e3e
Merge pull request #76 from ulyssessouza/add-rm
Add rm command
2020-05-13 14:04:37 +02:00
Ulysses Souza 507caabf49 Add id to the error output
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-13 12:37:18 +02:00
Ulysses Souza df48f4eb20 Implement `Delete` for moby
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-13 10:50:36 +02:00
Ulysses Souza b98f45eb28 Enable "run->rm" cycle on e2e-aci
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-13 10:44:04 +02:00
Ulysses Souza 7ff1899021 Format with goimport and refactor consts
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-13 10:44:04 +02:00
Ulysses Souza 14fb12c8c8 Let `make protos` affect host files
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-13 10:44:04 +02:00
Ulysses Souza 40fa78ac5d Add rm command
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-13 10:44:04 +02:00
Ulysses Souza 80bc3f3620 Print container name when successful
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-13 10:27:39 +02:00
Djordje Lukic 33b9525c9e Remove util package, it was only used by cli/main.go
`util` is not a great name, it has no context and can quickly become a
place where we put everything and anything.
2020-05-13 10:24:16 +02:00
Guillaume Tardif 1a3365fa37
Merge pull request #81 from chris-crone/always-context
Context should always be handled by new CLI
2020-05-13 09:40:28 +02:00
Christopher Crone c93d2e9180 Context should always be handled by new CLI
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-12 18:05:02 +02:00
Guillaume Tardif 4e7645aae2
Merge pull request #42 from rumpl/moby
Moby
2020-05-12 13:46:26 +02:00
Guillaume Tardif 102116315a
Merge pull request #79 from chris-crone/context-rm
Add context rm command
2020-05-12 13:19:08 +02:00
Christopher Crone 5a2a5f5f60 Use new context rm command for e2e
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-12 12:24:47 +02:00
Christopher Crone 1d3ffc0254 Add context rm command
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-12 12:24:43 +02:00
Christopher Crone 3c43606a20 Add remove function to context store
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-12 12:05:00 +02:00
Christopher Crone 4788dd5b93 Use common errors in context store
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-12 12:05:00 +02:00
Christopher Crone b55f4b0547 Add common error definitions
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-12 12:04:57 +02:00
Christopher Crone 144ee29645 Fix function description typo
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-11 15:49:14 +02:00
Djordje Lukic fe1772b84a Moby backend 2020-05-11 15:49:03 +02:00
Djordje Lukic b5821e0e39
Merge pull request #75 from rumpl/chore-upgrade-logrus
Upgrade logrus to 1.6.0
2020-05-07 18:51:04 +02:00
Djordje Lukic dd53eeea90 Upgrade logrus to 1.6.0 2020-05-07 17:20:24 +02:00
Guillaume Tardif 90273ec801
Merge pull request #70 from docker/better_container_ids
ACI Container ids work fine between ps, log & exec, either from single container (docker run) of multi-container compose stack
2020-05-07 12:19:00 +02:00
Guillaume Tardif 153e7c1e11 Moved sample compose files in test folder 2020-05-07 09:35:25 +02:00
Guillaume Tardif 13db3437fd ACI Container ids work fine between ps, log & exec, either from single container (docker run) of multi-container compose stack 2020-05-06 22:15:33 +02:00
Guillaume Tardif 56707b6282
Merge pull request #50 from docker/e2e_aci_test
Added aci e2e tests, not run in CI since requiring azure login.
2020-05-06 16:02:51 +02:00
Guillaume Tardif 9a2ec752b5 Add ACI compose basic e2e test 2020-05-06 15:56:47 +02:00
Guillaume Tardif eb712ac75f Added aci e2e tests, not run in CI since requiring azure login.
Need a `docker rm` command to add nginx e2e test, and compose sample to follow
2020-05-06 15:48:01 +02:00
Silvin Lubecki 77759f9658
Merge pull request #51 from rumpl/feat-ps-q
Implement quiet flag for ps command
2020-05-06 12:22:11 +02:00
Djordje Lukic 688e7e5deb Implement quiet flag for ps command 2020-05-06 12:18:53 +02:00
Djordje Lukic 28299c099d
Merge pull request #49 from chris-crone/friendly-names
Use friendly random name generator
2020-05-06 09:25:13 +02:00
Christopher Crone 07569bffa9 Use friendly random name generator
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-05 18:14:43 +02:00
Ulysses Souza fce52f66b8
Merge pull request #45 from rumpl/chore-polling-delay
Change the default polling delays
2020-05-05 17:30:35 +02:00
Djordje Lukic d30239a1e6 Change the default polling delays
So that the backend knows that the container(s) are running faster
2020-05-05 17:30:00 +02:00
Ulysses Souza b6b6fe5baa
Merge pull request #43 from rumpl/fix-exec-commands
Fix execution of a list of commands
2020-05-05 17:24:37 +02:00
Ulysses Souza 1be5ec602e
Merge pull request #46 from ulyssessouza/refactor-example-backend
Refactor example/backend
2020-05-05 17:23:46 +02:00
Djordje Lukic 5d5fe69300 Fix execution of a list of commands
The io.Reader interface now returns only bytes up to len(p) (as it
should)
2020-05-05 17:21:54 +02:00
Ulysses Souza 73529cc264 Refactor example/backend
Also promote init function from returning
interface{} to backend.Service to avoid
typecasting

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-05 17:14:26 +02:00
Djordje Lukic 6a2ce681b4
Merge pull request #44 from ulyssessouza/fix-linter
Fix linter issues
2020-05-05 16:31:31 +02:00
Ulysses Souza e075df6f8f Fix linter issues
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-05 16:27:22 +02:00
Ulysses Souza a4e54e9b5d
Merge pull request #41 from ulyssessouza/add-up
Add compose up and down
2020-05-05 16:00:44 +02:00