Run test plans on Docker Swarm (AWS)#126
Merged
Conversation
Needs to connect to the right network and fetch the right image.
Just need to make those a bit more dynamic and we will have a working runner!
222f0c4 to
6aa9be6
Compare
It now schedules containers on AWS. By default it runs on the foreground and tails service logs, until all replicas are done, at which point it deletes the service. These behaviours are configurable via runner cfg.
Even if DOCKER_HOST is set.
Contributor
|
Could you:
|
Contributor
Author
|
@daviddias good ideas! |
daviddias
suggested changes
Nov 6, 2019
Contributor
daviddias
left a comment
There was a problem hiding this comment.
Awesome work! Made some comments and suggestions. That said, @Stebalien should review as there is a lot of go things here that are beyond my current knowledge.
daviddias
suggested changes
Nov 6, 2019
daviddias
approved these changes
Nov 6, 2019
Contributor
daviddias
left a comment
There was a problem hiding this comment.
Thanks for applying CR :)
We now check the executable directory and the working directory.
Stebalien
suggested changes
Nov 6, 2019
Contributor
|
Only missing a @Stebalien 👍🏽 for the merge? :) |
Stebalien
approved these changes
Nov 7, 2019
daviddias
reviewed
Nov 7, 2019
pkg/runner/local_docker.go
Outdated
| } | ||
|
|
||
| if !cfg.KeepContainers { | ||
| defer deleteContainers(cli, log, containers) |
Contributor
There was a problem hiding this comment.
Go is unhappy here - #126 (review)
Suggested change
| defer deleteContainers(cli, log, containers) | |
| defer func () { | |
| err := deleteContainers(cli, log, containers) | |
| if err != nil { | |
| log.Errorw("error while deleting containers", "error", err) | |
| } | |
| }() |
Or is there other best practice to silence this lint error?
Contributor
There was a problem hiding this comment.
In this case, we probably want to log.
a5d3f65 to
5687b96
Compare
5687b96 to
c93a876
Compare
daviddias
approved these changes
Nov 7, 2019
This was referenced Nov 7, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR builds on #112. It introduces:
cluster:swarmrunner that takes a docker image of a test plan, and runs a test case within a Docker swarm cluster on AWS.docker:gobuilder can now push to Docker registries, particularly AWS ECR registries. It does theaws ecr get-logindance and all!I'm hitting the remote Docker Swarm manager endpoint by creating an SSH tunnel for port forwarding: