Skip to content

Commit

Permalink
[sophora-server]: add support to overwrite derby driver (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-schoener authored Jun 19, 2024
1 parent 8f31d60 commit 0123d14
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/sophora-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.2.1
version: 2.3.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ data:
<param name="consistencyCheck" value="false" />
<param name="minBlobSize" value="16384" />
<param name="driver"
value="org.apache.derby.jdbc.EmbeddedDriver" />
value="{{ .Values.sophora.server.persistence.derby.driver }}" />
<param name="url"
value="jdbc:derby:${wsp.home}/db/itemState;create=true" />
<param name="user" value="" />
Expand Down Expand Up @@ -252,7 +252,7 @@ data:
<param name="consistencyCheck" value="false" />
<param name="minBlobSize" value="16384" />
<param name="driver"
value="org.apache.derby.jdbc.EmbeddedDriver" />
value="{{ .Values.sophora.server.persistence.derby.driver }}" />
<param name="url"
value="jdbc:derby:${rep.home}/version/db;create=true" />
<param name="user" value="" />
Expand Down Expand Up @@ -304,7 +304,7 @@ data:
<param name="bundleCacheSize" value="64"/>
<param name="consistencyCheck" value="false"/>
<param name="minBlobSize" value="16384"/>
<param name="driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
<param name="driver" value="{{ .Values.sophora.server.persistence.derby.driver }}"/>
<param name="url" value="jdbc:derby:${wsp.home}/db/itemState;create=true"/>
<param name="user" value=""/>
<param name="password" value=""/>
Expand Down Expand Up @@ -351,7 +351,7 @@ data:
<param name="bundleCacheSize" value="64"/>
<param name="consistencyCheck" value="false"/>
<param name="minBlobSize" value="16384"/>
<param name="driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
<param name="driver" value="{{ .Values.sophora.server.persistence.derby.driver }}"/>
<param name="url" value="jdbc:derby:${wsp.home}/db/itemState;create=true"/>
<param name="user" value=""/>
<param name="password" value=""/>
Expand Down
6 changes: 6 additions & 0 deletions charts/sophora-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ sophora:
repositoryType: localdb
## @param sophora.server.persistence.archiveType string that identifies the archive persistence technology (localdb, mysql or none)
archiveType: localdb

derby:
## @param sophora.server.persistence.derby.driver string that specifies the java derby driver. Defaults to "org.apache.derby.jdbc.EmbeddedDriver".
## For Sophora versions newer than 5.4 use "org.apache.derby.iapi.jdbc.AutoloadedDriver".
driver: "org.apache.derby.jdbc.EmbeddedDriver"

mysql:
## @param sophora.server.persistence.mysql.repositories Array of server main repository connection configurations via secrets.
## e.g.
Expand Down

0 comments on commit 0123d14

Please sign in to comment.