Skip to content

Commit

Permalink
Merge pull request #1312 from gtroitsk/elastic-search-use-docker-offi…
Browse files Browse the repository at this point in the history
…cial-image

Use official docker image for Elasticsearch
  • Loading branch information
michalvavrik authored Jul 11, 2023
2 parents 54de465 + dd3b014 commit 72eac83
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@
<ts.global.s2i.quarkus.native.builder.image>${ts.global.s2i.quarkus.native.builder.image}</ts.global.s2i.quarkus.native.builder.image>
<!-- Services used in test suite -->
<postgresql.latest.image>${postgresql.latest.image}</postgresql.latest.image>
<!-- TODO: investigate further in https://github.com/quarkus-qe/quarkus-test-suite/issues/627 -->
<elastic.71.image>docker.io/bitnami/elasticsearch:7.17.9</elastic.71.image>
<elastic.71.image>docker.io/library/elasticsearch:7.17.10</elastic.71.image>
<mysql.57.image>docker.io/library/mysql:5.7.42</mysql.57.image>
<mysql.upstream.80.image>docker.io/library/mysql:8.0</mysql.upstream.80.image>
<mysql.80.image>registry.access.redhat.com/rhscl/mysql-80-rhel7</mysql.80.image>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public class MysqlMultitenantHibernateSearchIT extends AbstractMultitenantHibern
static MySqlService company2 = new MySqlService().withDatabase("company2");;

@Container(image = "${elastic.71.image}", port = ELASTIC_PORT, expectedLog = "started")
static DefaultService elastic = new DefaultService().withProperty("discovery.type", "single-node");
static DefaultService elastic = new DefaultService()
.withProperty("discovery.type", "single-node")
// Limit resources as Elasticsearch official docker image use half of available RAM
.withProperty("ES_JAVA_OPTS", "-Xms1g -Xmx1g");

@QuarkusApplication
static RestService app = new RestService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ public class OpenShiftMysqlMultitenantHibernateSearchIT extends AbstractMultiten
.withProperty(MAX_ALLOWED_PACKET_KEY, MAX_ALLOWED_PACKET_VALUE);

@Container(image = "${elastic.71.image}", port = ELASTIC_PORT, expectedLog = "started")
static DefaultService elastic = new DefaultService().withProperty("discovery.type", "single-node");
static DefaultService elastic = new DefaultService()
.withProperty("discovery.type", "single-node")
// Limit resources as Elasticsearch official docker image use half of available RAM
.withProperty("ES_JAVA_OPTS", "-Xms1g -Xmx1g");

@QuarkusApplication
static RestService app = new RestService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ public class OpenShiftPostgresqlMultitenantHibernateSearchIT extends AbstractMul
static final int POSTGRESQL_PORT = 5432;

@Container(image = "${elastic.71.image}", port = ELASTIC_PORT, expectedLog = "started")
static DefaultService elastic = new DefaultService().withProperty("discovery.type", "single-node");
static DefaultService elastic = new DefaultService()
.withProperty("discovery.type", "single-node")
// Limit resources as Elasticsearch official docker image use half of available RAM
.withProperty("ES_JAVA_OPTS", "-Xms1g -Xmx1g");

@Container(image = "${postgresql.10.image}", port = POSTGRESQL_PORT, expectedLog = "listening on IPv4 address")
static PostgresqlService database = new PostgresqlService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ public class PostgresqlMultitenantHibernateSearchIT extends AbstractMultitenantH
static final int POSTGRESQL_PORT = 5432;

@Container(image = "${elastic.71.image}", port = ELASTIC_PORT, expectedLog = "started")
static DefaultService elastic = new DefaultService().withProperty("discovery.type", "single-node");
static DefaultService elastic = new DefaultService()
.withProperty("discovery.type", "single-node")
// Limit resources as Elasticsearch official docker image use half of available RAM
.withProperty("ES_JAVA_OPTS", "-Xms1g -Xmx1g");

@Container(image = "${postgresql.latest.image}", port = POSTGRESQL_PORT, expectedLog = "listening on IPv4 address")
static PostgresqlService database = new PostgresqlService();
Expand Down

0 comments on commit 72eac83

Please sign in to comment.