forked from testcontainers/testcontainers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Following Container Logs feature fixes #1
Open
slsyy
wants to merge
573
commits into
master
Choose a base branch
from
follow_logs
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
docs: add docs regarding Podman usage
…plates Remove bug_report.md and add slack/discusions to config.yml
Add CODEOWNERS
Update go-redis to v8.11.5
Bumps [github.com/docker/go-units](https://github.com/docker/go-units) from 0.4.0 to 0.5.0. - [Release notes](https://github.com/docker/go-units/releases) - [Commits](docker/go-units@v0.4.0...v0.5.0) --- updated-dependencies: - dependency-name: github.com/docker/go-units dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
It will check first if the host file path is a container
Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.6 to 1.10.7. - [Release notes](https://github.com/lib/pq/releases) - [Commits](lib/pq@v1.10.6...v1.10.7) --- updated-dependencies: - dependency-name: github.com/lib/pq dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
…go_modules/e2e/github.com/lib/pq-1.10.7 chore(deps): bump github.com/lib/pq from 1.10.6 to 1.10.7 in /e2e
…go_modules/github.com/docker/go-units-0.5.0 chore(deps): bump github.com/docker/go-units from 0.4.0 to 0.5.0
…tainer feat: copy directory to container
…ides docs: add contributing guides
…ners (testcontainers#514) Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
…xamples (testcontainers#908) * chore(deps): bump google.golang.org/api in /examples/bigtable Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.110.0 to 0.111.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.110.0...v0.111.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump google.golang.org/api in /examples/datastore Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.110.0 to 0.111.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.110.0...v0.111.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump google.golang.org/api in /examples/pubsub Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.110.0 to 0.111.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.110.0...v0.111.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump google.golang.org/api in /examples/spanner Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.110.0 to 0.111.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.110.0...v0.111.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump google.golang.org/api in /examples/firestore Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.110.0 to 0.111.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.110.0...v0.111.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: testcontainersbot <manu+testcontainersbot@atomicjar.com>
* chore: mod tidy examples * chore: mod tidy modules
* chore: move pulsar example to modules * chore: export Pulsar container type * chore: export Start container func * chore: support changing the pulsar image * chore: support defining custom image for pulsar * chore: support overriding the default waiting strategy * chore: support overriding the default env * chore: support overriding the default command * docs: document StartContainer function * chore: leverate modifiers * chore: create PulsarContainerRequest abstraction * chore: make a more advanced setup for the test * chore: support for setting function workers * chore: support for setting transactions * chore: support passing log consumers * chore: simplify initialisation of env * fix: use right module path * chore: migrate tests to its own package * chore: remove Pulsar from exported fields * chore: support retrieving broker and http admin URLs from the container * chore: support passing pulsar envs to the container request * docs: copy Java docs * docs: document modifiers * docs: fix heading * chore: improve tests to check that subscriptions are there * chore: simplify asserts * fix: update paths in GH workflow * fix: update dependabot for pulsar module * fix: typos
* chore(deps): bump golang.org/x/text from 0.7.0 to 0.8.0 in /modulegen Bumps [golang.org/x/text](https://github.com/golang/text) from 0.7.0 to 0.8.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.7.0...v0.8.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump golang.org/x/sys from 0.5.0 to 0.6.0 Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.5.0 to 0.6.0. - [Release notes](https://github.com/golang/sys/releases) - [Commits](golang/sys@v0.5.0...v0.6.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump github.com/aws/aws-sdk-go-v2/config Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.13 to 1.18.15. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) - [Commits](aws/aws-sdk-go-v2@config/v1.18.13...config/v1.18.15) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/config dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 Bumps [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) from 1.30.3 to 1.30.5. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) - [Commits](aws/aws-sdk-go-v2@service/s3/v1.30.3...service/s3/v1.30.5) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/s3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump golang.org/x/mod in /modules/localstack Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.8.0 to 0.9.0. - [Release notes](https://github.com/golang/mod/releases) - [Commits](golang/mod@v0.8.0...v0.9.0) --- updated-dependencies: - dependency-name: golang.org/x/mod dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…pers (testcontainers#869) * feat: expose a way to retrieve credentials from the credentials helpers * chore: support for retrieving the config file from the DOCKER_CONFIG env var * docs: document how to retrieve Docker credentials * chore: support reading from DOCKER_AUTH_CONFIG * feat: populate the auth struct from the Docker credentials helper if user and password are empty in the configuration file * chore: simplify * chore: load from credentials helper properly * docs: typo * chore: move to constants * chor: do not expose helper method * chore: support getting auth for default registry * chore: friendlier func names * chore: extract registry from a Docker image * chore: move constant to internal package * chore: return default Docker registry if no registry is found * chore: define a fallback * chore: include protocol of the registry * chore: refactor func to get the auth from a Docker image * chore: do not hardcode ports in tests * fix: apply credentials to the right struct * feart: pull image using the registry credentials of the image * feat: support extracting all images from a Dockerfile * chore: deprecated AuthConfigs from BuildFormDockerfile They will automatically discovered extracting all the FROM images in the Dockerfiles * Revert "chore: do not hardcode ports in tests" This reverts commit 24ac700. * chore: do not recalculate base64 if it exists * chore: set custom Auth config for the registry tests * chore: remove deprecated AuthConfigs usage * chore: set proper docker config for tests involving a private registry * chore: avoid double call to extract registry * chore: extract expected registries to constants * fix: use the right format for the registry auth * chore: improve test names * chore: better test names * chore: move docker auth tests to another test file * docs: update docs * chore: interpolate build args when extracting images from dockerfile * chore: remove logs from tests * chore: extract message to constant * fix: remove whitespaces from each line * chore: verify that Docker's default config file exist
* chore: bump Go to 1.19 in modules * chore: bump Go to 1.19 in CI workflows
* Allow numerical characters in example names/titles * Refine error message, add test case * Update the documentation
* remove volumes on down * PR feedback * comment mentioning where volume comes from * move compose yml into const as well as testresources package
…ontainers#926) Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit) from 0.11.2 to 0.11.4. - [Release notes](https://github.com/moby/buildkit/releases) - [Commits](moby/buildkit@v0.11.2...v0.11.4) --- updated-dependencies: - dependency-name: github.com/moby/buildkit dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add a test about stop services in docker compose. * Set logger in dockerCompose struct * check container status rather than service names * use filepath to build an OS-agnostic path
* fix: handle version in go modules properly It was replacing too many things, such as the replace directive in the Go modules * fix: right path to modules
* chore: support for skipping git/curl operations * chore: prepare for next release
* create couchbase module * expose enabled service ports * add wait until all nodes are healthy * add cluster initialization functions * refactor enabledServices for loop with contains method * add configureExternalPorts * refactor doHttpRequest to create new request with context * add create buckets * complete create bucket flow * add docker image name to config * fix port suffix, mapped port, enabled services and refactor checkAllServicesEnabled with gjson * add initCluster method * refactor bucket definition * update module name * add ConnectionString, Username, Password for test case and fix configure external port * add test * goimports and go mod tidy * fix: use modules instead of example * change WithBasicCredentials with WithBasicAuth * add test for community edition * fix eventing service with community container test * update depandabot.yml and go.mod * update couchbase doc * reorder modules couchbase dependabot.yml * Update modules/couchbase/go.mod Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com> * add comments for public methods * add option for index storage mode * add comments for index storage modes --------- Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
…testcontainers#933) Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.19.1 to 1.20.0. - [Release notes](https://github.com/hashicorp/consul/releases) - [Changelog](https://github.com/hashicorp/consul/blob/main/CHANGELOG.md) - [Commits](hashicorp/consul@api/v1.19.1...api/v1.20.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/consul/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…estcontainers#934) Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.211 to 1.44.217. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](aws/aws-sdk-go@v1.44.211...v1.44.217) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* docs: fix snippet for containerRequest and private registries * docs: use codeinclude
* chore: simplify how to negotiate the API version * chore: use filepath in compose tests * chore: unify how to internally retrieve a Docker client * chore: defer closing the internal Docker client * chore: extract provider code to a separate file * chor: always Close the Docker client * chore: extract test paths to variables * fix: always fallback to the client from env when the host does not respond
* chore: move TestContainers config to a separate file * chore: rename to readConfig * break: rename struct to honour project's name * chore: add names to test table * chore: support for disabling Ryuk at the configuration layer * chore: rename to doReadConfig * chore: read tc config just once * chore: deprecate SkipReaper * chore: add a pipeline for tests without Ryuk * docs: document Ryuk * chore: use same message when disabling Ryuk * chore: print reaper banner when reading properties for first time * chore: expose reading TC config * break: do not return the config when retrieving a Docker client * break: do not return the Docker Host when retrieving a Docker client It comes in the TC config * chore: simplify reaper-off pipeline * chore: skip reaper test when it's disabled * fix: update tests * fix: default for docker host * fix: create the Docker provider properly * fix: rename GH check for reaper-off * chore: remove old static-analysis checks * fix: remove containers in tests * fix: remove more containers in tests * chore: extract to constants * chore: enable Ryuk using env vars at GH workflow * fix: reset test environment * fix: typo * chore: log when the properties file is found * fix: reset config's syncOnce in tests * chore: proper config state in tests * chore: do not reset the sync * fix: remove containers in tests * chore: remove duplicated test * docs: document the config * fix: remove paragraph * fix: proper escaping message
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.
c.FollowOutput()
MUST be called beforec.StartLogProducer()
due to date racec.StartLogProducer()
without calling ac.StopLogProducer()
c.StopLogProducer()
inc.Terminate()
to reduce risk of anaccidental goroutine leak