File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .springframework .data .mongodb .test .util ;
17
17
18
+ import org .apache .commons .logging .Log ;
19
+ import org .apache .commons .logging .LogFactory ;
20
+
18
21
import org .springframework .core .env .StandardEnvironment ;
19
22
20
23
import org .testcontainers .containers .wait .strategy .Wait ;
32
35
*/
33
36
public class AtlasContainer extends MongoDBAtlasLocalContainer {
34
37
38
+ private static final Log LOG = LogFactory .getLog (AtlasContainer .class );
39
+
35
40
private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName .parse ("mongodb/mongodb-atlas-local" );
36
41
private static final String DEFAULT_TAG = "8.0.0" ;
37
42
private static final String LATEST = "latest" ;
@@ -69,6 +74,14 @@ public static AtlasContainer tagged(String tag) {
69
74
return new AtlasContainer (DEFAULT_IMAGE_NAME .withTag (tag ));
70
75
}
71
76
77
+ @ Override
78
+ protected void containerIsStarting (InspectContainerResponse containerInfo ) {
79
+ followOutput (outputFrame -> {
80
+ LOG .info (outputFrame .getUtf8StringWithoutLineEnding ());
81
+ });
82
+ super .containerIsStarting (containerInfo );
83
+ }
84
+
72
85
@ Override
73
86
protected void containerIsStarted (InspectContainerResponse containerInfo ) {
74
87
You can’t perform that action at this time.
0 commit comments