Commit Graph

63 Commits

Author SHA1 Message Date
Djordje Lukic 40a3a20f78 Add serve command that serves the cli and the containers services 2020-04-30 12:07:26 +02:00
Djordje Lukic 26c628b587
Merge pull request #28 from rumpl/feat-multiple-backends
Multiple backend for the cli
2020-04-30 12:07:14 +02:00
Djordje Lukic b2606b91f2 Remove useless client grpc stuff 2020-04-30 11:06:04 +02:00
Djordje Lukic f4bde8cb89 Multiple backend for the cli
* implement a little azure backend
* implement an example backend
* use the right backend from the context
2020-04-30 11:01:04 +02:00
Djordje Lukic f5bf355d1f
Merge pull request #27 from rumpl/change-context-store
ACI context creation
2020-04-29 19:11:00 +02:00
Djordje Lukic 551eb2326f ACI context creation
And remove gRPC stuff from the client for now
2020-04-29 19:08:58 +02:00
Djordje Lukic 01cc77a09a
Merge pull request #25 from ulyssessouza/refactor-store-new
Refactor store.New to use vargs and get user home by default
2020-04-28 15:00:02 +02:00
Ulysses Souza 3380c9d459 Refactor store.New
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-04-27 18:56:37 +02:00
Guillaume Tardif bf243bfe31
Merge pull request #22 from rumpl/feat-context
Add context commands
2020-04-27 17:23:11 +02:00
Guillaume Tardif 7eda6df07f
Merge pull request #23 from ulyssessouza/add-compose
Add compose.proto
2020-04-27 16:09:44 +02:00
Ulysses Souza 5c04e31117 Add compose.proto
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-04-27 16:04:30 +02:00
Djordje Lukic 474cdbae11 Remove unnecessary if 2020-04-27 15:56:23 +02:00
Djordje Lukic e6597d6139 Don't cd into a directory before building
We pass the directory to build to the `go build` command
2020-04-27 15:42:59 +02:00
Djordje Lukic 756836ffab Use testify/suite and testify/require 2020-04-27 11:45:23 +02:00
Djordje Lukic 10bc4b93f6 Call moby if the command is unknown
Will also check if the context is an original docker context
2020-04-27 11:33:16 +02:00
Djordje Lukic cdff00d571 Run tests inside a container 2020-04-27 10:17:10 +02:00
Djordje Lukic 32da9e65e8 Only execute moby if the command is not a context command 2020-04-27 09:20:58 +02:00
Djordje Lukic e2c7370a82 Implement context list 2020-04-26 22:07:50 +02:00
Djordje Lukic 3bb4fe163c Add `docker context create` command
This creates a context with a name and a type
2020-04-26 19:42:20 +02:00
Djordje Lukic 244adb77a4
Merge pull request #20 from chris-crone/copyright
Update copyright date
2020-04-24 18:06:14 +02:00
Djordje Lukic c5e8f297fc
Merge pull request #21 from chris-crone/dockerignore
Add dockerignore
2020-04-24 15:05:06 +02:00
Christopher Crone cbfcd5cf64 Add dockerignore
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-04-24 15:03:46 +02:00
Ulysses Souza 31ad0385b2
Merge pull request #13 from ulyssessouza/dockerize-build
Dockerize build
2020-04-24 14:44:51 +02:00
Ulysses Souza 9c6a9957aa
Merge pull request #18 from ulyssessouza/refactoring-context
Refactor NewContext
2020-04-24 14:44:10 +02:00
Christopher Crone d166ad82f9 Update copyright date
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-04-24 14:39:49 +02:00
Ulysses Souza 88aef2e4e2 Dockerize build and proto gen
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-04-24 14:20:42 +02:00
Guillaume Lours f393dea175
Merge pull request #19 from chris-crone/clean-gitignore
Remove non-project path
2020-04-24 14:13:41 +02:00
Christopher Crone fcc7582826 Remove non-project path
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-04-24 14:04:27 +02:00
Ulysses Souza b44547c71f Refactor NewContext
This renames NewContext to NewSigContext and
moves it to ./util/util.go avoiding the servers
to import "github.com/docker/api/client"

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-04-24 11:50:30 +02:00
Djordje Lukic 667d1fa37e
Merge pull request #16 from rumpl/feat-containers-proto
Add containers proto from docker/d2
2020-04-23 21:21:09 +02:00
Djordje Lukic d473b83b00 Add containers proto from docker/d2 2020-04-23 12:25:14 +02:00
Djordje Lukic 29a838ddf5
Merge pull request #15 from glours/find_existing_docker_binary
Use docker binary find in path to fallback to Moby CLI
2020-04-23 11:32:13 +02:00
Djordje Lukic 5cc722da4a
Merge pull request #14 from glours/upgrade_urfave_cli
Use v2 of urfave/cli
2020-04-23 10:07:00 +02:00
Guillaume Lours 8db55e8c5c Use v2 of urfave/cli
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-04-23 09:43:53 +02:00
Guillaume Lours 8af8924a58 Use docker binary find in path to fallback to Moby CLI
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-04-22 23:47:04 +02:00
Djordje Lukic 83e9843ef2
Merge pull request #11 from glours/fix_protobuff_setup_file
add protoc-gen-go and remove gogo install
2020-04-21 15:30:51 +02:00
Guillaume Lours e3d62ce74a add protoc-gen-go and remove gogo install
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-04-21 15:29:18 +02:00
Guillaume Lours 1df55a2a3c
Merge pull request #10 from rumpl/feat-go-mod
Feat go mod
2020-04-21 15:12:32 +02:00
Djordje Lukic 6bfeda054b Go mods initialized, protos without gogo 2020-04-21 15:07:41 +02:00
Djordje Lukic 3a5fd3bb07 Use go mod 2020-04-21 14:13:48 +02:00
Guillaume Lours b24985af56
Merge pull request #9 from glours/default_to_cli_only
Fallback to default CLI
2020-04-21 10:01:30 +02:00
Djordje Lukic 4b2c8ae9cf Call original docker on moby context
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-04-20 21:16:03 +02:00
Guillaume Lours f5aa9638af Add default shellout to engine if no context specified
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-04-20 17:16:37 +02:00
Guillaume Lours a8403241e4 Add default shellout to engine if no context specified
Improve CLI documentation

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-04-20 16:22:15 +02:00
Nicolas De Loof 3dac4df803 Implement context loading
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-04-20 16:22:15 +02:00
Guillaume LOURS 2a99ecdeec
Merge pull request #8 from rumpl/feat-client-connection
Configure client connection backoff
2020-04-17 14:51:28 +02:00
Djordje Lukic dfa8e03860 Configure client connection backoff
For faster startup times (from 2s to ~130ms)
2020-04-17 14:37:54 +02:00
Michael Crosby 8e68e36894
Merge pull request #5 from chris-crone/proto-mac
Fix macOS protobuf install
2020-04-08 10:26:34 -04:00
Christopher Crone 3a6a9c1d9a macOS install fixes
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-04-08 14:07:11 +02:00
Michael Crosby a9ad7c3d1b
Merge pull request #3 from gtardif/gogo_protobuf_setup
Add gogo protobuf in install script
2020-04-07 15:58:35 -04:00