Skip to content

Commit a3d051d

Browse files
committed
Align Oracle DB setup in quarkus-it-hibernate-reactive-oracle on other ITs
E.g. on quarkus-reactive-oracle-client-deployment, quarkus-it-jpa-oracle. Because the current setup doesn't seem to work.
1 parent e0c832e commit a3d051d

File tree

1 file changed

+50
-9
lines changed
  • integration-tests/hibernate-reactive-oracle

1 file changed

+50
-9
lines changed

Diff for: integration-tests/hibernate-reactive-oracle/pom.xml

+50-9
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<description>Hibernate Reactive related tests running with the Oracle database</description>
1515

1616
<properties>
17-
<reactive-oracle.url>vertx-reactive:oracle:thin:@localhost:1520/hibernate_orm_test</reactive-oracle.url>
17+
<reactive-oracle.url>vertx-reactive:oracle:thin:@localhost:1521/FREEPDB1</reactive-oracle.url>
1818
</properties>
1919

2020
<dependencies>
@@ -188,20 +188,26 @@
188188
<name>${oracle.image}</name>
189189
<alias>oracle</alias>
190190
<run>
191+
<ports>
192+
<port>1521:1521</port>
193+
</ports>
191194
<env>
192-
<ORACLE_DATABASE>hibernate_orm_test</ORACLE_DATABASE>
193195
<ORACLE_PASSWORD>hibernate_orm_test</ORACLE_PASSWORD>
194-
<APP_USER>hibernate_orm_test</APP_USER>
195-
<APP_USER_PASSWORD>hibernate_orm_test</APP_USER_PASSWORD>
196196
</env>
197-
<ports>
198-
<port>1520:1521</port>
199-
</ports>
200197
<log>
201-
<prefix>ORACLE:</prefix>
198+
<prefix>Oracle Database:</prefix>
202199
<date>default</date>
203-
<color>cyan</color>
200+
<color>red</color>
204201
</log>
202+
<wait>
203+
<!-- good docs found at: https://dmp.fabric8.io/#build-healthcheck -->
204+
<!-- Unfortunately booting this is slow, needs to set a generous timeout: -->
205+
<time>60000</time>
206+
<!-- leverage the healthcheck in the image we use -->
207+
<healthy>yes</healthy>
208+
<!-- In case of any issues with the built-in healthcheck we can revert back to the original log check:-->
209+
<!--<log>DATABASE IS READY TO USE!</log>-->
210+
</wait>
205211
</run>
206212
</image>
207213
</images>
@@ -247,6 +253,41 @@
247253
</plugins>
248254
</build>
249255
</profile>
256+
257+
<!-- In general, we want to avoid os- or arch-based guards on tests, but the Oracle
258+
db would not start on M1 - see https://stackoverflow.com/questions/68605011/oracle-12c-docker-setup-on-apple-m1 -->
259+
<profile>
260+
<id>mac-m1</id>
261+
<activation>
262+
<os>
263+
<arch>aarch64</arch>
264+
</os>
265+
</activation>
266+
<build>
267+
<plugins>
268+
<plugin>
269+
<artifactId>maven-surefire-plugin</artifactId>
270+
<configuration>
271+
<skip>true</skip>
272+
</configuration>
273+
</plugin>
274+
<plugin>
275+
<groupId>io.fabric8</groupId>
276+
<artifactId>docker-maven-plugin</artifactId>
277+
<configuration>
278+
<images>
279+
<image>
280+
<name>${oracle.image}</name>
281+
<run>
282+
<skip>true</skip>
283+
</run>
284+
</image>
285+
</images>
286+
</configuration>
287+
</plugin>
288+
</plugins>
289+
</build>
290+
</profile>
250291
</profiles>
251292

252293

0 commit comments

Comments
 (0)