Skip to content

Commit

Permalink
feature(container): add simple run configuration to start Dataverse, …
Browse files Browse the repository at this point in the history
…Solr and Postgres in single Maven call. IQSS#5292
  • Loading branch information
poikilotherm committed Mar 26, 2021
1 parent 7cb10c0 commit 68f439f
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<jakartaee-api.version>8.0.0</jakartaee-api.version>
<payara.version>5.2021.1</payara.version>
<postgresql.version>42.2.19</postgresql.version>
<postgresql.server.version>13</postgresql.server.version>
<solr.version>8.8.1</solr.version>
<aws.version>1.11.762</aws.version>
<commons.logging.version>1.2</commons.logging.version>
Expand Down Expand Up @@ -839,7 +840,6 @@
<id>tc</id>
<properties>
<skipUnitTests>true</skipUnitTests>
<postgresql.server.version>9.6</postgresql.server.version>
</properties>
<build>
<plugins>
Expand Down Expand Up @@ -896,6 +896,24 @@
<descriptor>${project.basedir}/conf/container/assembly.xml</descriptor>
</assembly>
</build>
<run>
<env>
<DATAVERSE_DB_USER>dataverse</DATAVERSE_DB_USER>
<DATAVERSE_DB_PASSWORD>changeme</DATAVERSE_DB_PASSWORD>
</env>
<hostname>dataverse</hostname>
<ports>
<port>8080:8080</port>
</ports>
<network>
<mode>custom</mode>
<name>dataverse</name>
</network>
<dependsOn>
<container>solr</container>
<container>postgresql</container>
</dependsOn>
</run>
</image>
<!-- Solr K8s image -->
<image>
Expand All @@ -911,8 +929,32 @@
<descriptor>${project.basedir}/conf/solr/assembly.xml</descriptor>
</assembly>
</build>
<run>
<hostname>solr</hostname>
<network>
<mode>custom</mode>
<name>dataverse</name>
</network>
</run>
</image>
<!-- Postgresql Image (no build, run only -->
<image>
<alias>postgresql</alias>
<name>postgres:${postgresql.server.version}</name>
<run>
<hostname>postgresql</hostname>
<network>
<mode>custom</mode>
<name>dataverse</name>
</network>
<env>
<POSTGRES_USER>dataverse</POSTGRES_USER>
<POSTGRES_PASSWORD>changeme</POSTGRES_PASSWORD>
</env>
</run>
</image>
</images>
<autoCreateCustomNetworks>true</autoCreateCustomNetworks>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 68f439f

Please sign in to comment.