Commit Graph

3272 Commits

Author SHA1 Message Date
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
Ulysses Souza 161f8154de Organize imports
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-05 15:56:00 +02:00
Ulysses Souza ba455916c6 Refactor on services
This refactors the interfaces and implementations of
services

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-05 15:37:12 +02:00
Guillaume Tardif 8b36b36260
Merge pull request #37 from docker/e2e_tests
E2e tests
2020-05-05 14:46:03 +02:00
Guillaume Tardif 35c5073cc0 First e2e tests running locally (with example backend) 2020-05-05 14:40:30 +02:00
Ulysses Souza 03e418cbbb Add compose up and down
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-05-05 14:03:14 +02:00
Djordje Lukic f32235b8ba
Merge pull request #40 from docker/chore-cleanup
Add comments on exported items, remove example command
2020-05-05 12:06:55 +02:00
Djordje Lukic 4e9a4185af Add `make lint` and run it on CI 2020-05-05 10:50:30 +02:00
Djordje Lukic 6feedaf939 Use go modules on build 2020-05-05 10:27:44 +02:00
Djordje Lukic 24c035e822 Add comments on exported items, remove example command
Also add `make lint` to run the linter
2020-05-05 10:27:44 +02:00
Djordje Lukic 29737c2a23
Merge pull request #38 from rumpl/fix-exec
Simplify exec on ACI
2020-05-05 10:26:10 +02:00
Djordje Lukic 0584ff7dfa
Merge pull request #39 from docker/chore-clean-makefile
Cleanup Makefiles
2020-05-05 10:13:36 +02:00
Djordje Lukic d6417cb504 Simplify exec on ACI
* both streams send messages to a `chan error`
* the main goroutine returns the error if one exists
2020-05-05 10:12:37 +02:00
Djordje Lukic ba8c824436 Cleanup Makefiles
* add `make help` target
* remove unused variables
* add .exe to the binary name when on windows
* add ldflags to go build to strip the binary (smaller binary size)
* `make protos` must be executed manually when proto files change
2020-05-05 10:07:11 +02:00
Djordje Lukic 900d82ced0
Merge pull request #36 from rumpl/feat-logs
Feat logs
2020-05-04 16:39:31 +02:00
Djordje Lukic e964a3af2e Implement `docker logs --tal <N>` 2020-05-04 16:38:02 +02:00
Djordje Lukic 1c7270b697 Implement logs 2020-05-04 15:52:31 +02:00
Djordje Lukic d36baba42e
Merge pull request #35 from rumpl/feat-exec
Feat exec
2020-05-04 15:19:37 +02:00
Djordje Lukic afca3e31b5 Implement exec command 2020-05-04 12:43:32 +02:00
Djordje Lukic 50daf97a86
Merge pull request #32 from rumpl/feat-run
Feat run
2020-05-04 12:18:33 +02:00
Djordje Lukic 092c432028 Init all the fields of a compose project at once 2020-05-04 11:51:40 +02:00
Djordje Lukic 28808f3f6d Check that port definition contains source and dest 2020-05-04 11:45:34 +02:00
Djordje Lukic e992b4192c Panic if we cannot set env var 2020-05-04 11:35:11 +02:00
Djordje Lukic 63c460240c Move config initialization closer to the beginning 2020-05-04 11:35:11 +02:00
Djordje Lukic 6aec90c506 Lowercase errors 2020-05-04 11:35:11 +02:00
Djordje Lukic 6fa941686c Make all functions in aci.go package private
They shouldn't be used outside of the package any way
2020-05-04 11:35:11 +02:00
Djordje Lukic 9fd5f7bef3 Rename xcli to cross 2020-05-04 11:35:11 +02:00
Djordje Lukic eee9bf449f Move run to own package 2020-05-04 11:35:11 +02:00
Djordje Lukic 7046fc8ac5 Add convert tests 2020-05-04 11:35:11 +02:00
Djordje Lukic a1a5e1794b Add ports publishing to run 2020-05-04 11:35:11 +02:00
Djordje Lukic 5aa31b6bf5 Separate conversion code into own package 2020-05-04 11:35:11 +02:00
Djordje Lukic 3d363643ad Implement simple ACI run 2020-05-04 11:35:11 +02:00