Skip to content

Commit

Permalink
[incubator-kie-issues-813] Create multiple quarkus builds for data au…
Browse files Browse the repository at this point in the history
…dit container images. (apache#1949)

* [incubator-kie-issues-813] Create multiple quarkus builds for data audit container images.

* fix classpath for pgsql
  • Loading branch information
elguardian authored and rgdoliveira committed Jan 18, 2024
1 parent 76c0c70 commit 0038536
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<artifactId>kogito-addons-data-audit-jpa-quarkus</artifactId>
</dependency>

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-flyway</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-container-image-jib</artifactId>
Expand All @@ -40,14 +44,31 @@
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<configuration>
<skipOriginalJarRename>true</skipOriginalJarRename>
</configuration>
<extensions>true</extensions>
<executions>
<execution>
<id>h2</id>
<goals>
<goal>build</goal>
</goals>
<configuration>
<properties>
<quarkus.profile>h2</quarkus.profile>
<quarkus.package.output-directory>h2-quarkus-app</quarkus.package.output-directory>
</properties>
</configuration>
</execution>
<execution>
<id>postgresql</id>
<goals>
<goal>build</goal>
</goals>
<configuration>
<properties>
<quarkus.profile>postgresql</quarkus.profile>
<quarkus.package.output-directory>postgresql-quarkus-app</quarkus.package.output-directory>
</properties>
</configuration>
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
#default values
# build multiple images

%h2.quarkus.datasource.db-kind=h2
%h2.quarkus.datasource.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:h2:mem:data-audit}
%h2.quarkus.container-image.name=data-audit-jpa-h2-service
%h2.quarkus.container-image.additional-tags=h2
%h2.quarkus.flyway.locations=classpath:/db/data-audit/h2/


%postgresql.quarkus.datasource.db-kind=postgresql
%postgresql.quarkus.datasource.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:postgresql://localhost:5432/kogito}
%postgresql.quarkus.container-image.name=data-audit-jpa-postgresql-service
%postgresql.quarkus.container-image.additional-tags=postgresql
%postgresql.quarkus.flyway.locations=classpath:/db/data-audit/postgresql//


quarkus.datasource.db-kind=${QUARKUS_DATASOURCE_DB:h2}
quarkus.datasource.username=${QUARKUS_DATASOURCE_USER:kogito-user}
quarkus.datasource.password=${QUARKUS_DATASOURCE_PASS:kogito-pass}
quarkus.datasource.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:h2:mem:data-audit}

quarkus.hibernate-orm.database.generation=update
quarkus.flyway.migrate-at-start=${QUARKUS_FLYWAY_MIGRATE_AT_START:true}

quarkus.container-image.build=${quarkus.build.image:true}
quarkus.container-image.group=org.kie.kogito
quarkus.jib.jvm-arguments=-Dquarkus.http.port=8080
quarkus.container-image.name=data-audit-jpa-service

0 comments on commit 0038536

Please sign in to comment.