Open
Conversation
Contributor
qhool
commented
Jul 7, 2023
- docker compose.yml creates a testing environment: * Use kinesalite and dynalite (github.com/mhart) to provide kinesis and dynamodb work-alikes * Create ca-certificate and server cert signed with this ca, so that kinesalite and dynalite can pose as the real deals * Insert the ca-cert into trusted certificats for the test container * Create dns aliases for standard aws endpoints
- New consume_SUITE.erl and load_from_dir script enable testing against real AWS or using the docker compose env
- Add Makefile to hold the required commands to start tests under docker
* docker compose.yml creates a testing environment:
* Use kinesalite and dynalite (github.com/mhart) to provide
kinesis and dynamodb work-alikes
* Create ca-certificate and server cert signed with this ca,
so that kinesalite and dynalite can pose as the real deals
* Insert the ca-cert into trusted certificats for the test container
* Create dns aliases for standard aws endpoints
* New consume_SUITE.erl and load_from_dir script enable testing against
real AWS or using the docker compose env
* Add Makefile to hold the required commands to start tests under docker
raz-adroll
reviewed
Jul 7, 2023
Contributor
raz-adroll
left a comment
There was a problem hiding this comment.
I'm on a running it in my mac and I get:
error: failed switching to "work_user": unable to find user work_user: no matching entries in passwd file
I highly recommend documenting the setup in the README.
| openssl genrsa -des3 -passout pass:foobar -out ca/ca.key $KEY_SIZE || exit 1 | ||
|
|
||
| openssl req -new -x509 -passin pass:foobar \ | ||
| -subj "/C=US/ST=CA/O=ACME/CN=acme.fake/emailAddress=wcoyote@acme.fake" \ |
Contributor
Author
What command did you use exactly?
I'll add something once I understand what's going on.. for me the setup was |
Docker desktop uses a utility vm to host the containers. In addition to making things slower, this has other advantages: for instance, by running as root and mapping file ownership to root, it can break workflows that assume the docker user is unpriviledged.
Contributor
|
Almost working, but I still got this error while I was running the last commit. |
pbrudnick
reviewed
Jul 10, 2023
| depends_on: | ||
| ca: | ||
| condition: service_healthy | ||
| domainname: kinesis.us-east-1.amazaonaws.com |
Collaborator
There was a problem hiding this comment.
typo here
Suggested change
| domainname: kinesis.us-east-1.amazaonaws.com | |
| domainname: kinesis.us-east-1.amazonaws.com |
Contributor
|
Please do not merge this PR before it has been tested in mac arm and mac x86. As soon as we get it working on x86 I'll test it in arm. Thaaanks! |
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.
