Граф коммитов

90 Коммитов

Автор SHA1 Сообщение Дата
Ulysses Souza 7802e4d1df
Merge pull request #24 from ulyssessouza/add-compose
Little fixes on client side and containers.proto
2020-05-04 11:32:00 +02:00
Ulysses Souza 33c45a0a62 Add "goimports"
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-04 11:30:21 +02:00
Ulysses Souza 933bed5f5d Invert the logic to preserve the happy path
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-04 11:30:21 +02:00
Ulysses Souza 4f3c2c1996 Fix protos and its generation
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-04 11:30:21 +02:00
Ulysses Souza 111ec3b80d Add Containers and Compose to gRPC client creation
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-04 11:30:21 +02:00
Ulysses Souza ec7a7ef055 Fix go_package
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-04 11:30:21 +02:00
Djordje Lukic 2cf6d6513b
Merge pull request #33 from rumpl/fix-ps
Get the real status of containers
2020-05-04 10:45:29 +02:00
Djordje Lukic 152d4119d2 Proper variable naming 2020-05-04 09:59:12 +02:00
Djordje Lukic fc748142fa Fix badge... 2020-05-03 15:32:19 +02:00
Djordje Lukic 2154cd4ea7
Merge pull request #34 from rumpl/chore-actions-badge
Add ci badge in the readme
2020-05-03 15:26:21 +02:00
Djordje Lukic c3df7cdc78 Add ci badge in the readme 2020-05-03 15:25:50 +02:00
Djordje Lukic 885fd799e1 Get the real status of containers 2020-05-03 14:54:15 +02:00
Djordje Lukic 02526dec84
Merge pull request #30 from rumpl/chore-update-readme
Remove example from README, it no longer exists
2020-04-30 18:39:37 +02:00
Djordje Lukic e415d00afc
Merge pull request #31 from rumpl/chore-mod-tidy
Tidy go mods, remove urfave/cli
2020-04-30 18:15:24 +02:00
Djordje Lukic a307952dab Tidy go mods, remove urfave/cli 2020-04-30 18:12:53 +02:00
Djordje Lukic aae6a0b3ca Remove example from README, it no longer exists 2020-04-30 18:11:49 +02:00
Djordje Lukic 1858367277 Add gotestsum 2020-04-30 17:48:34 +02:00
Djordje Lukic bb017c490e Only install required go dependencies 2020-04-30 17:47:28 +02:00
Djordje Lukic 5cbfa2778e Use github action to install protoc 2020-04-30 17:45:48 +02:00
Djordje Lukic 04e2710380 Use setup-dev.sh script 2020-04-30 17:41:59 +02:00
Djordje Lukic cc87bbe34e
Add github actions 2020-04-30 17:37:41 +02:00
Djordje Lukic ebbd660101
Merge pull request #29 from rumpl/feat-serve
Feat serve
2020-04-30 17:16:01 +02:00
Djordje Lukic c4a260369b Remove useless SetContext function in client.go 2020-04-30 12:44:55 +02:00
Djordje Lukic 6ecb5550f7 Use a request for the context list rpc in cli.proto 2020-04-30 12:42:11 +02:00
Djordje Lukic 0af5afe440 Move the proxy in the server package 2020-04-30 12:20:04 +02:00
Djordje Lukic 8571cf5a04 Create a new client on each request
`docker serve` doesn't need a context any more, the server takes the
current context from the request metadata and creates a new client
2020-04-30 12:07:26 +02:00
Djordje Lukic 9ea91791b4 Change the current context of the client on each request
* the interceptor takes the current context from the metadat
* each handler needs to call `client.SetContext()` before using the
sevices
2020-04-30 12:07:26 +02:00
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