226 Commits

Author SHA1 Message Date
Djordje Lukic
f451bb333e
Merge pull request #110 from ulyssessouza/fix-typo
Fix typo (and refactor the method name)
2020-05-18 06:10:08 -07:00
Chris Crone
485078cbb8
Merge pull request #111 from chris-crone/context-show-no-global
Do not pass global flags to context show
2020-05-18 15:04:32 +02:00
Christopher Crone
6d2f085717 Do not pass global flags to context show
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-18 14:58:03 +02:00
Ulysses Souza
872e81862a Fix typo (and refactor the method name)
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-18 14:56:32 +02:00
Djordje Lukic
7cbbab1739
Merge pull request #109 from chris-crone/context-show
Add context show command
2020-05-18 05:50:20 -07:00
Christopher Crone
10d826eb10 Add context show command
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-18 14:48:02 +02:00
Christopher Crone
f6fcd27a09 Factor determination of current context
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-18 14:40:15 +02:00
Djordje Lukic
9b63e967d0
Merge pull request #101 from docker/feat-labels
Add labels to containers on run
2020-05-18 04:57:04 -07:00
Djordje Lukic
fcb4b606e2 Add labels to containers on run 2020-05-18 13:54:03 +02:00
Djordje Lukic
0c6b6beec4
Merge pull request #98 from docker/feat-port-print
Implement printing published ports
2020-05-18 04:48:14 -07:00
Djordje Lukic
6fd290e2b1 Add ports convet tests 2020-05-18 12:21:27 +02:00
Djordje Lukic
5effbdc31f Add ACI public ip 2020-05-18 11:36:46 +02:00
Djordje Lukic
d8a38afecc Implement printing published ports 2020-05-16 10:41:35 +02:00
Djordje Lukic
23d2eacf84
Merge pull request #97 from docker/feat-port-parsing
Port parsing on the comand line
2020-05-15 17:49:18 +02:00
Guillaume Tardif
d496b239dd
Merge pull request #96 from rumpl/chore-golangci-lint
Remove golangci-lint action, use executable
2020-05-15 15:51:18 +02:00
Guillaume Tardif
4dbb0df34c
Merge pull request #83 from docker/azure-login
Azure login
2020-05-15 15:38:27 +02:00
Djordje Lukic
52f7902d40 Port parsing on the comand line 2020-05-15 15:04:09 +02:00
Guillaume Tardif
7cf2309ca6 Separate azure login bits in LocalServer + Helper (mocked part) 2020-05-15 10:40:48 +02:00
Guillaume Tardif
7edc6659a2 Add unit tests for login process 2020-05-15 10:28:31 +02:00
Guillaume Tardif
146dd3e639 Fix tokenStore not creating ~/.azure folder if not exist 2020-05-15 10:15:56 +02:00
Guillaume Tardif
8b116b7c73 get an available port for login localhost server, instead of hardcoded port 2020-05-15 10:15:56 +02:00
Guillaume Tardif
d49773e348 Use cli context for login 2020-05-15 10:15:56 +02:00
Guillaume Tardif
bd5e3af2d4 Plug new authorizer and remove az dependency 2020-05-15 10:15:56 +02:00
Guillaume Tardif
69f10fe80c Extract interface / types to allow unit tests / mock 2020-05-15 10:15:56 +02:00
Guillaume Tardif
1e19d977e0 Initial functional login command : added Cloud API with generic Login() 2020-05-15 10:04:22 +02:00
Guillaume Tardif
eea84cd487 move context cmd to its own folder ; initial docker context login command 2020-05-15 10:04:22 +02:00
Guillaume Tardif
230cccff76
Merge pull request #92 from docker/chore-cmd-cleanup
Chore cmd cleanup
2020-05-15 09:51:24 +02:00
Djordje Lukic
693aa7b849 Remove golangci-lint action, use executable
The github action we were using had to be rebuilt on each build, we now
start from base go 1.14 and just download the golangci-tool and run it.
This saves around 20-30 seconds on each build.
2020-05-15 09:17:01 +02:00
Djordje Lukic
15fb6f63c3 Add licenses 2020-05-15 09:14:52 +02:00
Djordje Lukic
0765b08309 Put each compose command in own file 2020-05-15 09:14:51 +02:00
Djordje Lukic
962efef48c Commands run and rm only call a func 2020-05-15 09:14:51 +02:00
Djordje Lukic
42c72c365c Split context comands into own files 2020-05-15 09:14:51 +02:00
Djordje Lukic
0d3ddaa490
Merge pull request #94 from rumpl/chore-rm-setup-dev
Remove unused setup-dev.sh, add protoc to the readme
2020-05-15 09:14:01 +02:00
Djordje Lukic
f464d98f5f
Merge pull request #95 from docker/fix-make-protos
Fix `make protos`
2020-05-15 09:13:47 +02:00
Djordje Lukic
a506b7f4e9 Fix make protos
The base target for protos was missing goimports, which we run after
making protos so that the linter doesn't fail on generated code
2020-05-14 21:53:14 +02:00
Djordje Lukic
f71ef61fef Remove unused setup-dev.sh, add protoc to the readme 2020-05-14 21:48:50 +02:00
Djordje Lukic
03095e5796
Merge pull request #93 from rumpl/chore-clean-readme
Remove gotestsum from the readme
2020-05-14 21:31:30 +02:00
Djordje Lukic
85ccba0e5e Remove gotestsum from the readme
It is not used any more
2020-05-14 21:26:13 +02:00
Djordje Lukic
17ffa84495
Merge pull request #90 from docker/chore-faster-build
Faster build
2020-05-14 21:21:50 +02:00
Djordje Lukic
7b26e8e836 Faster build
* Run  in parallel
  * lint
  * test/build/e2e test
* use cache for go
* do not use docker for building
* remove useless dependencies from the base image

Build time passes from 5 minutes to 1 minute 30 seconds
2020-05-14 21:16:31 +02:00
Djordje Lukic
6b435cf802
Merge pull request #86 from rumpl/feat-multierror
Add multierror
2020-05-14 21:14:32 +02:00
Chris Crone
747258d452
Merge pull request #91 from chris-crone/appease-linter
Fix import order of cli/options
2020-05-14 20:02:29 +02:00
Christopher Crone
19baa17246 Fix import order of cli/options
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-14 19:28:57 +02:00
Chris Crone
cc23137945
Merge pull request #82 from chris-crone/context-use
Add context use command
2020-05-14 19:24:03 +02:00
Christopher Crone
a1e83109cd Replace require with assert for errors test
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-14 19:18:33 +02:00
Christopher Crone
11b4bd19f5 Refactor global CLI options
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-14 18:29:09 +02:00
Christopher Crone
90e11cf349 e2e: Use new context use command
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-14 17:10:24 +02:00
Christopher Crone
8720a62c37 Add context use command
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-14 17:10:24 +02:00
Christopher Crone
c92a9b12d9 Add help to context commands
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-14 17:10:24 +02:00
Christopher Crone
9bf2924c24 Remove logrus.Fatal
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-14 17:10:24 +02:00