Skip to content
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

feat: Add Minio module #2132

Merged
merged 19 commits into from Jan 25, 2024
Merged

feat: Add Minio module #2132

merged 19 commits into from Jan 25, 2024

Conversation

adoublef
Copy link
Contributor

What does this PR do?

This PR adds a Go module for Minio including the following features:

  • support for Minio 2024-01-16 and above
  • support for passing a custom username and password

Why is it important?

Adding modules is always great, minio is a widely used s3-compatible object store.

Related issues

@adoublef adoublef requested a review from a team as a code owner January 22, 2024 12:22
Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit e100af0
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/65b21f164f42c10008a81445
😎 Deploy Preview https://deploy-preview-2132--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@adoublef
Copy link
Contributor Author

Looks like the test is failing for me not generating an examples/minio. Is this required giving the module generated also included an test example

modules/minio/minio.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few comments, PTAL before merging.

Thanks!

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.vscode/.testcontainers-go.code-workspace Outdated Show resolved Hide resolved
sonar-project.properties Outdated Show resolved Hide resolved
modules/minio/go.mod Outdated Show resolved Hide resolved
@mdelapenya mdelapenya self-assigned this Jan 24, 2024
@mdelapenya mdelapenya added the enhancement New feature or request label Jan 24, 2024
Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adoublef I think this module is ready to be merged, only pending the docs for the functional options.

Once there, I'll merge it, thanks!

docs/modules/minio.md Outdated Show resolved Hide resolved
docs/modules/minio.md Outdated Show resolved Hide resolved
@mdelapenya
Copy link
Collaborator

@adoublef I went ahead and pushed the changes on top of yours. Once the CI passes, I think we are good to go, thanks!

mdelapenya
mdelapenya previously approved these changes Jan 24, 2024
Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for adding a new module!

@adoublef
Copy link
Contributor Author

LGTM, thanks for adding a new module!

Thank you. Also it looks like golangci is failing the test for minio and cockroachdb. is this something I should be concerned about?

@mdelapenya
Copy link
Collaborator

LGTM, thanks for adding a new module!

Thank you. Also it looks like golangci is failing the test for minio and cockroachdb. is this something I should be concerned about?

At the moment there are changes in the core project's dependencies, they must be propagated to all the modules, so running go mod tidy for the modules is needed. I already did it and once the CI finishes, I'll merge the PR.

Thanks!

Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdelapenya mdelapenya merged commit ee642a8 into testcontainers:main Jan 25, 2024
124 checks passed
mdelapenya added a commit to lachieggg/testcontainers-go that referenced this pull request Jan 25, 2024
* main:
  feat: Add Minio module (testcontainers#2132)
  Adding LogConsumers start as part of the ContainerRequest (testcontainers#2073)
  chore: bring back assertion for network aliases for bridge in rootless mode (testcontainers#2141)
  chore(deps): bump github.com/docker/compose/v2 from 2.23.3 to 2.24.0 in /modules/compose (testcontainers#2096)
mdelapenya added a commit to rcrowe/testcontainers-go that referenced this pull request Jan 25, 2024
* main:
  Bump containerd version to v1.7.12 (testcontainers#2137)
  feat: Add Minio module (testcontainers#2132)
  Adding LogConsumers start as part of the ContainerRequest (testcontainers#2073)
  chore: bring back assertion for network aliases for bridge in rootless mode (testcontainers#2141)
  chore(deps): bump github.com/docker/compose/v2 from 2.23.3 to 2.24.0 in /modules/compose (testcontainers#2096)
@adoublef adoublef deleted the feat/minio branch January 25, 2024 17:14
mdelapenya added a commit to laskoviymishka/testcontainers-go that referenced this pull request Jan 26, 2024
* main:
  Adding inbucket module (testcontainers#2142)
  testifylint: enable compares rule (testcontainers#2143)
  Bump containerd version to v1.7.12 (testcontainers#2137)
  feat: Add Minio module (testcontainers#2132)
  Adding LogConsumers start as part of the ContainerRequest (testcontainers#2073)
  chore: bring back assertion for network aliases for bridge in rootless mode (testcontainers#2141)
  chore(deps): bump github.com/docker/compose/v2 from 2.23.3 to 2.24.0 in /modules/compose (testcontainers#2096)
mdelapenya added a commit to tateexon/testcontainers-go that referenced this pull request Jan 29, 2024
* main: (74 commits)
  chore(deps): bump github.com/docker/compose/v2 in /modules/compose (testcontainers#2162)
  feat(modules.cockroachdb) Adds cockroachdb module (testcontainers#2131)
  chore(deps): bump golang.org/x/crypto in /modules/minio (testcontainers#2161)
  chore(deps): bump golang.org/x/crypto in /modules/openldap (testcontainers#2165)
  chore(deps): bump github.com/google/uuid from 1.5.0 to 1.6.0 (testcontainers#2169)
  chore(deps): bump google.golang.org/api from 0.156.0 to 0.159.0, google.golang.org/grpc from 1.60.1 to 1.61.0, cloud.google.com/go/pubsub from 1.33.0 to 1.35.0 in /modules/gcloud (testcontainers#2168)
  chore(deps): bump github.com/hashicorp/consul/api in /examples/consul (testcontainers#2152)
  chore(deps): bump github.com/couchbase/gocb/v2 in /modules/couchbase (testcontainers#2145)
  chore(deps): bump k8s.io/api, k8s.io/apimachinery and k8s.io/client-go from 0.29.0 to 0.29.1 in /modules/k3s (testcontainers#2167)
  chore: do not compile modules on macos workers on GH (testcontainers#2164)
  Openldap module support (testcontainers#2117)
  Adding inbucket module (testcontainers#2142)
  testifylint: enable compares rule (testcontainers#2143)
  Bump containerd version to v1.7.12 (testcontainers#2137)
  feat: Add Minio module (testcontainers#2132)
  Adding LogConsumers start as part of the ContainerRequest (testcontainers#2073)
  chore: bring back assertion for network aliases for bridge in rootless mode (testcontainers#2141)
  chore(deps): bump github.com/docker/compose/v2 from 2.23.3 to 2.24.0 in /modules/compose (testcontainers#2096)
  chore(deps): bump github.com/dvsekhvalnov/jose2go in /modules/pulsar (testcontainers#2136)
  fix: skip-host-cache option removed in latest MySQL 8.3.0 version (testcontainers#2130)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants