File tree 2 files changed +6
-4
lines changed
src/test/java/com/madadipouya/elasticsearch/springdata
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 74
74
<dependency >
75
75
<groupId >org.testcontainers</groupId >
76
76
<artifactId >testcontainers</artifactId >
77
- <version >1.11.2 </version >
77
+ <version >1.17.3 </version >
78
78
</dependency >
79
79
<dependency >
80
80
<groupId >org.testcontainers</groupId >
81
81
<artifactId >junit-jupiter</artifactId >
82
- <version >1.11 .2</version >
82
+ <version >1.17 .2</version >
83
83
<scope >test</scope >
84
84
</dependency >
85
85
<dependency >
86
86
<groupId >org.testcontainers</groupId >
87
87
<artifactId >elasticsearch</artifactId >
88
- <version >1.11.2 </version >
88
+ <version >1.17.3 </version >
89
89
<scope >test</scope >
90
90
</dependency >
91
91
</dependencies >
Original file line number Diff line number Diff line change 1
1
package com .madadipouya .elasticsearch .springdata ;
2
2
3
3
import org .testcontainers .elasticsearch .ElasticsearchContainer ;
4
+ import org .testcontainers .utility .DockerImageName ;
4
5
5
6
public class BookElasticsearchContainer extends ElasticsearchContainer {
6
7
@@ -11,7 +12,8 @@ public class BookElasticsearchContainer extends ElasticsearchContainer {
11
12
private static final String ELASTIC_SEARCH = "elasticsearch" ;
12
13
13
14
public BookElasticsearchContainer () {
14
- super (ELASTIC_SEARCH_DOCKER );
15
+ super (DockerImageName .parse (ELASTIC_SEARCH_DOCKER )
16
+ .asCompatibleSubstituteFor ("docker.elastic.co/elasticsearch/elasticsearch" ));
15
17
this .addFixedExposedPort (9200 , 9200 );
16
18
this .addFixedExposedPort (9300 , 9300 );
17
19
this .addEnv (CLUSTER_NAME , ELASTIC_SEARCH );
You can’t perform that action at this time.
0 commit comments