Use docker-compose.yaml in go testify suite #2841
Unanswered
rashmy-dev
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Hi, we have this example repo: https://github.com/mdelapenya/testcontainers-go-compose Could you take a look? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a docker-compose.yaml file with a list of containers that needs to be started before running the e2e tests.
From the documentation here - https://golang.testcontainers.org/features/docker_compose/, it not clear to me how to use the new "ComposeStack".
In my testify suite, I do the following -
The 'compose' returned from NewDockerComposeWith() is of the type *dockerCompose (which as I understand is not exposed and deprecated).
How do I use the new ComposeStack to start the containers in docker-compose.yaml and then stop the containers in TearDownSuite() function?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions