Repository navigation
Azure Devops, DynamoDB and TestContainers #590
|
Hi, I have a test containers test, using the I'm trying to run the test in Azure Devops pipelines, but the container never seems to go healthy and times out after ~4 minutes after the call to The container configuration looks something like: var builder = new TestcontainersBuilder<TestcontainersContainer>()
.WithImage("amazon/dynamodb-local:latest")
.WithCleanUp(true)
.WithPortBinding(10001, 8000);
dynamoDbContainer = builder.Build();
await dynamoDbContainer.StartAsync();Is there anything I am missing here? Is there an easy way to attach some logging mechanism to get some insight as to what may be going wrong? |
Replies: 1 comment 10 replies
|
Does your configuration run on your local machine? You can configure logging and forward You can disable the resource reaper ( |
Does your configuration run on your local machine? You can configure logging and forward
stdoutandstderrwith an output consumer, but somehowDynamoDBLocal.jardoes not write tostdout(at least that is what I noticed in a quick test). Getting the logs otherwise is not yet supported (but I can add it, it is not much to do).You can disable the resource reaper (
TestcontainersSettings.ResourceReaperEnabled = false), run your configuration and get the logs with the CLIdocker logs CONTAINER(set the container name withWithName())?