|
14 | 14 | <description>Hibernate Reactive related tests running with the Oracle database</description>
|
15 | 15 |
|
16 | 16 | <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> |
18 | 18 | </properties>
|
19 | 19 |
|
20 | 20 | <dependencies>
|
|
188 | 188 | <name>${oracle.image}</name>
|
189 | 189 | <alias>oracle</alias>
|
190 | 190 | <run>
|
| 191 | + <ports> |
| 192 | + <port>1521:1521</port> |
| 193 | + </ports> |
191 | 194 | <env>
|
192 |
| - <ORACLE_DATABASE>hibernate_orm_test</ORACLE_DATABASE> |
193 | 195 | <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> |
196 | 196 | </env>
|
197 |
| - <ports> |
198 |
| - <port>1520:1521</port> |
199 |
| - </ports> |
200 | 197 | <log>
|
201 |
| - <prefix>ORACLE:</prefix> |
| 198 | + <prefix>Oracle Database:</prefix> |
202 | 199 | <date>default</date>
|
203 |
| - <color>cyan</color> |
| 200 | + <color>red</color> |
204 | 201 | </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> |
205 | 211 | </run>
|
206 | 212 | </image>
|
207 | 213 | </images>
|
|
212 | 218 | <executions>
|
213 | 219 | <execution>
|
214 | 220 | <id>docker-start</id>
|
215 |
| - <phase>pre-integration-test</phase> |
| 221 | + <phase>compile</phase> |
216 | 222 | <goals>
|
217 | 223 | <goal>stop</goal>
|
218 |
| - <goal>build</goal> |
219 | 224 | <goal>start</goal>
|
220 | 225 | </goals>
|
221 | 226 | </execution>
|
|
247 | 252 | </plugins>
|
248 | 253 | </build>
|
249 | 254 | </profile>
|
| 255 | + |
| 256 | + <!-- In general, we want to avoid os- or arch-based guards on tests, but the Oracle |
| 257 | + db would not start on M1 - see https://stackoverflow.com/questions/68605011/oracle-12c-docker-setup-on-apple-m1 --> |
| 258 | + <profile> |
| 259 | + <id>mac-m1</id> |
| 260 | + <activation> |
| 261 | + <os> |
| 262 | + <arch>aarch64</arch> |
| 263 | + </os> |
| 264 | + </activation> |
| 265 | + <build> |
| 266 | + <plugins> |
| 267 | + <plugin> |
| 268 | + <artifactId>maven-surefire-plugin</artifactId> |
| 269 | + <configuration> |
| 270 | + <skip>true</skip> |
| 271 | + </configuration> |
| 272 | + </plugin> |
| 273 | + <plugin> |
| 274 | + <groupId>io.fabric8</groupId> |
| 275 | + <artifactId>docker-maven-plugin</artifactId> |
| 276 | + <configuration> |
| 277 | + <images> |
| 278 | + <image> |
| 279 | + <name>${oracle.image}</name> |
| 280 | + <run> |
| 281 | + <skip>true</skip> |
| 282 | + </run> |
| 283 | + </image> |
| 284 | + </images> |
| 285 | + </configuration> |
| 286 | + </plugin> |
| 287 | + </plugins> |
| 288 | + </build> |
| 289 | + </profile> |
| 290 | + <!-- Disabled pending fix of #33094 --> |
| 291 | + <profile> |
| 292 | + <id>podman</id> |
| 293 | + <activation> |
| 294 | + <property> |
| 295 | + <name>env.IS_PODMAN</name> |
| 296 | + <value>true</value> |
| 297 | + </property> |
| 298 | + </activation> |
| 299 | + <build> |
| 300 | + <plugins> |
| 301 | + <plugin> |
| 302 | + <artifactId>maven-surefire-plugin</artifactId> |
| 303 | + <configuration> |
| 304 | + <skip>true</skip> |
| 305 | + </configuration> |
| 306 | + </plugin> |
| 307 | + </plugins> |
| 308 | + </build> |
| 309 | + </profile> |
250 | 310 | </profiles>
|
251 | 311 |
|
252 | 312 |
|
|
0 commit comments