Skip to content

Commit

Permalink
Merge pull request #272 from ODMDev/vnext-release
Browse files Browse the repository at this point in the history
Vnext release
  • Loading branch information
lgrateau authored Jun 14, 2021
2 parents 6e54884 + 94a7b39 commit 9cb056a
Show file tree
Hide file tree
Showing 32 changed files with 282 additions and 59 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ODM product version
ODMVERSION=8.10.4
ODMVERSION=8.10.5.1

# ODM database schema version
ODMDBVERSION=8.10.next
Expand All @@ -14,7 +14,7 @@ REPOSITORY=ibmcom
PREFIXIMAGE=odm

# Liberty Version
FROMLIBERTY=ibmcom/websphere-liberty:20.0.0.6-kernel-java8-ibmjava-ubi
FROMLIBERTY=ibmcom/websphere-liberty:21.0.0.3-kernel-java8-ibmjava-ubi

# Postgres Version
FROMPOSTGRES=postgres:12
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
secure: MR+cKxC7Big1DcXqbimRt4BLdUyIz7Bh8/gxtjmpJ+vr046jVec1mlnQyRtPAAAlS8W1OZrEuY9YzYl4Gq5s7dieEk/ERUwuQeUTXkg3jzFdC05JbcYWhDlsjLbZuLjVamH2wcXnf3VpJDZ/lqM1Tn2wTGkn5cqT8UdLC3qRDgRyKCT8mnKoIEkw2Bx8YyRZ2FR2xg8UjDXRnNf5El0jJCnK5d82YumOeMYN7PUBRkyypv/obluE1dcZ1gbFdj3ln7s752+Rjmh0R3+GvV67pApv0HlS6ceDETp+ynh2tDFCuLJtevJTfwTW2KOST9Mo53vuBSFpi+Ts8Yb08rYpK6eg4zbje3NSLsLPoKLlHSQSAWsuzrBGk4KlnjdzcUmB+RgDbRFrz3Vo+vhQfG+4qdmX4mNIE9/OP4s6BaLagt6iYmJDlXj7rOky9EbttxXYUJaw5wtkBafYG4bJjVaqJk0KJRrYIArTRTibKcH9U+hrJeLbepHMLtEAP930I7S+TAPQ70Zi0lnJrvAf/Cm7mT9Js+Uah3hijkrOu1NjHe2d8jF8kNmhHbIckhvNwkXqLbd58ypjDBVABGIHHUtmX3mVCrfkCyCFVJqCzPw1ZzlLWZ4qi90WhsAnGL0ySI3sp3vqVdZ3gqFs7QzIMPtLXUOgDji62W3qZopgK2NdWkI=
before_install:
- mkdir -p $HOME/.cache

- echo "${REGISTRY_PASSWORD}" | docker login docker.io --username ${REGISTRY_USER} --password-stdin
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
Expand Down
6 changes: 6 additions & 0 deletions common/config/authOidc/resAdministrators.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<user name="resAdmUser1" access-id="${odm.resAdministrators.user1}"/>
<user name="resAdmUser2" access-id="${odm.resAdministrators.user2}"/>
<user name="resAdmUser3" access-id="${odm.resAdministrators.user3}"/>
<user name="resAdmUser4" access-id="${odm.resAdministrators.user4}"/>
<user name="resAdmUser5" access-id="${odm.resAdministrators.user5}"/>
<user name="resAdmUser6" access-id="${odm.resAdministrators.user6}"/>
<group name="resAdmGroup1" access-id="${odm.resAdministrators.group1}"/>
<group name="resAdmGroup2" access-id="${odm.resAdministrators.group2}"/>
<group name="resAdmGroup3" access-id="${odm.resAdministrators.group3}"/>
<group name="resAdmGroup4" access-id="${odm.resAdministrators.group4}"/>
<group name="resAdmGroup5" access-id="${odm.resAdministrators.group5}"/>
<group name="resAdmGroup6" access-id="${odm.resAdministrators.group6}"/>
6 changes: 6 additions & 0 deletions common/config/authOidc/resDeployers.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<user name="resDepUser1" access-id="${odm.resDeployers.user1}"/>
<user name="resDepUser2" access-id="${odm.resDeployers.user2}"/>
<user name="resDepUser3" access-id="${odm.resDeployers.user3}"/>
<user name="resDepUser4" access-id="${odm.resDeployers.user4}"/>
<user name="resDepUser5" access-id="${odm.resDeployers.user5}"/>
<user name="resDepUser6" access-id="${odm.resDeployers.user6}"/>
<group name="resDepGroup1" access-id="${odm.resDeployers.group1}"/>
<group name="resDepGroup2" access-id="${odm.resDeployers.group2}"/>
<group name="resDepGroup3" access-id="${odm.resDeployers.group3}"/>
<group name="resDepGroup4" access-id="${odm.resDeployers.group4}"/>
<group name="resDepGroup5" access-id="${odm.resDeployers.group5}"/>
<group name="resDepGroup6" access-id="${odm.resDeployers.group6}"/>
6 changes: 6 additions & 0 deletions common/config/authOidc/resExecutors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<user name="resExeUser1" access-id="${odm.resExecutors.user1}"/>
<user name="resExeUser2" access-id="${odm.resExecutors.user2}"/>
<user name="resExeUser3" access-id="${odm.resExecutors.user3}"/>
<user name="resExeUser4" access-id="${odm.resExecutors.user4}"/>
<user name="resExeUser5" access-id="${odm.resExecutors.user5}"/>
<user name="resExeUser6" access-id="${odm.resExecutors.user6}"/>
<group name="resExeGroup1" access-id="${odm.resExecutors.group1}"/>
<group name="resExeGroup2" access-id="${odm.resExecutors.group2}"/>
<group name="resExeGroup3" access-id="${odm.resExecutors.group3}"/>
<group name="resExeGroup4" access-id="${odm.resExecutors.group4}"/>
<group name="resExeGroup5" access-id="${odm.resExecutors.group5}"/>
<group name="resExeGroup6" access-id="${odm.resExecutors.group6}"/>
6 changes: 6 additions & 0 deletions common/config/authOidc/resMonitors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<user name="resMonUser1" access-id="${odm.resMonitors.user1}"/>
<user name="resMonUser2" access-id="${odm.resMonitors.user2}"/>
<user name="resMonUser3" access-id="${odm.resMonitors.user3}"/>
<user name="resMonUser4" access-id="${odm.resMonitors.user4}"/>
<user name="resMonUser5" access-id="${odm.resMonitors.user5}"/>
<user name="resMonUser6" access-id="${odm.resMonitors.user6}"/>
<group name="resMonGroup1" access-id="${odm.resMonitors.group1}"/>
<group name="resMonGroup2" access-id="${odm.resMonitors.group2}"/>
<group name="resMonGroup3" access-id="${odm.resMonitors.group3}"/>
<group name="resMonGroup4" access-id="${odm.resMonitors.group4}"/>
<group name="resMonGroup5" access-id="${odm.resMonitors.group5}"/>
<group name="resMonGroup6" access-id="${odm.resMonitors.group6}"/>
6 changes: 6 additions & 0 deletions common/config/authOidc/rtsAdministrators.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<user name="rtsAdmUser1" access-id="${odm.rtsAdministrators.user1}"/>
<user name="rtsAdmUser2" access-id="${odm.rtsAdministrators.user2}"/>
<user name="rtsAdmUser3" access-id="${odm.rtsAdministrators.user3}"/>
<user name="rtsAdmUser4" access-id="${odm.rtsAdministrators.user4}"/>
<user name="rtsAdmUser5" access-id="${odm.rtsAdministrators.user5}"/>
<user name="rtsAdmUser6" access-id="${odm.rtsAdministrators.user6}"/>
<group name="rtsAdmGroup1" access-id="${odm.rtsAdministrators.group1}"/>
<group name="rtsAdmGroup2" access-id="${odm.rtsAdministrators.group2}"/>
<group name="rtsAdmGroup3" access-id="${odm.rtsAdministrators.group3}"/>
<group name="rtsAdmGroup4" access-id="${odm.rtsAdministrators.group4}"/>
<group name="rtsAdmGroup5" access-id="${odm.rtsAdministrators.group5}"/>
<group name="rtsAdmGroup6" access-id="${odm.rtsAdministrators.group6}"/>
6 changes: 6 additions & 0 deletions common/config/authOidc/rtsConfigManagers.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<user name="rtsCfgUser1" access-id="${odm.rtsConfigManagers.user1}"/>
<user name="rtsCfgUser2" access-id="${odm.rtsConfigManagers.user2}"/>
<user name="rtsCfgUser3" access-id="${odm.rtsConfigManagers.user3}"/>
<user name="rtsCfgUser4" access-id="${odm.rtsConfigManagers.user4}"/>
<user name="rtsCfgUser5" access-id="${odm.rtsConfigManagers.user5}"/>
<user name="rtsCfgUser6" access-id="${odm.rtsConfigManagers.user6}"/>
<group name="rtsCfgGroup1" access-id="${odm.rtsConfigManagers.group1}"/>
<group name="rtsCfgGroup2" access-id="${odm.rtsConfigManagers.group2}"/>
<group name="rtsCfgGroup3" access-id="${odm.rtsConfigManagers.group3}"/>
<group name="rtsCfgGroup4" access-id="${odm.rtsConfigManagers.group4}"/>
<group name="rtsCfgGroup5" access-id="${odm.rtsConfigManagers.group5}"/>
<group name="rtsCfgGroup6" access-id="${odm.rtsConfigManagers.group6}"/>
6 changes: 6 additions & 0 deletions common/config/authOidc/rtsInstallers.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<user name="rtsInstUser1" access-id="${odm.rtsInstallers.user1}"/>
<user name="rtsInstUser2" access-id="${odm.rtsInstallers.user2}"/>
<user name="rtsInstUser3" access-id="${odm.rtsInstallers.user3}"/>
<user name="rtsInstUser4" access-id="${odm.rtsInstallers.user4}"/>
<user name="rtsInstUser5" access-id="${odm.rtsInstallers.user5}"/>
<user name="rtsInstUser6" access-id="${odm.rtsInstallers.user6}"/>
<group name="rtsInstGroup1" access-id="${odm.rtsInstallers.group1}"/>
<group name="rtsInstGroup2" access-id="${odm.rtsInstallers.group2}"/>
<group name="rtsInstGroup3" access-id="${odm.rtsInstallers.group3}"/>
<group name="rtsInstGroup4" access-id="${odm.rtsInstallers.group4}"/>
<group name="rtsInstGroup5" access-id="${odm.rtsInstallers.group5}"/>
<group name="rtsInstGroup6" access-id="${odm.rtsInstallers.group6}"/>
36 changes: 36 additions & 0 deletions common/resources/ibm-docs.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
-----BEGIN CERTIFICATE-----
MIIGRDCCBSygAwIBAgISBGekf/7rGwi26Xz73I6OvoTFMA0GCSqGSIb3DQEBCwUA
MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD
EwJSMzAeFw0yMTA0MjkwMjQ1MjBaFw0yMTA3MjgwMjQ1MjBaMEUxQzBBBgNVBAMT
OmlibWRvY3MtcHJvZHVjdGlvbi1kYWwudXMtc291dGguY29udGFpbmVycy5h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pbmVycy5hcHBkb21haW4uY2xvdWQwTAYDVR0gBEUwQzAIBgZn
gQwBAgEwNwYLKwYBBAGC3xMBAQEwKDAmBggrBgEFBQcCARYaaHR0cDovL2Nwcy5s
ZXRzZW5jcnlwdC5vcmcwggECBgorBgEEAdZ5AgQCBIHzBIHwAO4AdAD2XJQv0Xcw
IhRUGAgwlFaO400TGTO/3wwvIAvMTvFk4wAAAXkbuyXGAAAEAwBFMEMCIBsjAbrG
9kLGSVuQGUwb0NcxVTUG1JsFePs8JwZYjlhsAh8ddDRpg+QgDMaWCF4bKIfGbuUm
GoD0AYeuPhxLvnDcAHYAlCC8Ho7VjWyIcx+CiyIsDdHaTV5sT5Q9YdtOL1hNosIA
AAF5G7sl1AAABAMARzBFAiBsPI0YmvwUKqaCuIBODy6BfQ7+07CiyKyM7yKeKAzt
YAIhAKxXfyAS277G9CySQNDMVp6eBLA/MM/RYyqJMxFFZQYzMA0GCSqGSIb3DQEB
CwUAA4IBAQBbH5QIu3xD7ixh3pe3YKV1XhP7ge8R0kkUYPp0pjdmbB/0Ydw2xyYd
U6INemlmpmDYYlExdfGzQ3NSKGZPIpX8YV7nf620h/EAL9XzawR6/GM+CMBQ5cEj
xQuTPJWEYba9MmWimYwkazbNZGmlmFBbOIzyKoNjTfarzvIp+h+bYpK3HHHOJKQk
QojQRTZ7odJPJ3YJqfCsPHm+rz/wY0+TdBsrTonBDQDPxvrL7/q+I/Fu8qag5k5/
pSwexj/PGwDQTZw/YcQ4QVDhL2StgntvCbSnAZuqfcvGsvtmne9M0s3pLIaZzRvl
hObPHoVTQvl4IEbAxmaPJKUmyo2p+3xz
-----END CERTIFICATE-----
52 changes: 52 additions & 0 deletions common/resources/ibm-public.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN CERTIFICATE-----
MIIJRDCCCCygAwIBAgIQDmawg9RSDxVkfwCV86ESfTANBgkqhkiG9w0BAQsFADBe
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMR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h0dHBzOi8vd3d3LmRp
Z2ljZXJ0LmNvbS9DUFMwCAYGZ4EMAQICMHUGCCsGAQUFBwEBBGkwZzAmBggrBgEF
BQcwAYYaaHR0cDovL3N0YXR1cy5nZW90cnVzdC5jb20wPQYIKwYBBQUHMAKGMWh0
dHA6Ly9jYWNlcnRzLmdlb3RydXN0LmNvbS9HZW9UcnVzdFJTQUNBMjAxOC5jcnQw
DAYDVR0TAQH/BAIwADCCAQMGCisGAQQB1nkCBAIEgfQEgfEA7wB1APZclC/RdzAi
FFQYCDCUVo7jTRMZM7/fDC8gC8xO8WTjAAABdaQD+kkAAAQDAEYwRAIgDIn7I66Z
02IOs0QqmoFhbtWEmE6N4GQET6ptxeHnw10CICGVrufvv4gEu63rTJcnfh/Dn7Cq
WEFRL9taruYUkeMBAHYAXNxDkv7mq0VEsV6a1FbmEDf71fpH3KFzlLJe5vbHDsoA
AAF1pAP6lAAABAMARzBFAiBUxV1lwhJQsZHawUPvscKjynL6Tf8fJDOr12Rk6zI2
9QIhAIk2RY4zviOTnS4HFcEOtDmIRFLr5yoNg9CDCkRvDzRsMA0GCSqGSIb3DQEB
CwUAA4IBAQBluNf+EPbwLJ6jheqTxzS0xsB10xEdeGSXzTkP8OYoitSZ0B5618vq
0JgS/nwjdM44z3quORwTnNrWNzeDWthLiP0Z7eRtLlm1BrctzY++lBzdVUXZXBUD
B+kj0iTFzVmzArU6JeORR61EnVtGYL6h1KIKAtVyJKQSVGTtOEd+x3l88dJBdJqs
/PjDaPgp8TNeUJjpSj+c18V9uOxJ5ITsYU1V5v8inPolTYEZLC0wxjYIIXrujiHq
LQfZ/QpUSkGQBU4ajtJ5Skb4T3YzTdtvROuGK/gxEMncThYGSAb6S7KdrS/8K+Wt
ALdvvM/SkBUVDpSrhOPEkCRIAJJM495Y
-----END CERTIFICATE-----
17 changes: 0 additions & 17 deletions common/script/configureSwidTag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,7 @@ then
echo "DEPLOY_FOR_PRODUCTION not set then ODM production configuration : remove ODM non production Swidtag"
removeAllSwidTag ibm.com_IBM_ODM_Server_for_Non-Production-*.swidtag
fi
echo "ODM configuration : remove all DBAMC Swidtag"
removeAllSwidTag ibm.com_Operational_Decision_Manager_Containers_-_CP4BA*.swidtag
removeAllSwidTag ibm.com_Operational_Decision_Manager_Containers_-_CP4BA_-_Non_Prod*.swidtag
else
if [ -n "$DEPLOY_FOR_PRODUCTION" ]
then
if [[ "$DEPLOY_FOR_PRODUCTION" =~ "TRUE" ]]
then
echo "DEPLOY_FOR_PRODUCTION is true then DBAMC production configuration : remove DBAMC non production Swidtag"
removeAllSwidTag ibm.com_Operational_Decision_Manager_Containers_-_CP4BA_-_Non_Prod-*.swidtag
else
echo "DEPLOY_FOR_PRODUCTION is false then DBAMC non production configuration : remove DBAMC production Swidtag"
removeAllSwidTag ibm.com_Operational_Decision_Manager_Containers_-_CP4BA-*.swidtag
fi
else
echo "DEPLOY_FOR_PRODUCTION not set then DBAMC production configuration : remove DBAMC non production Swidtag"
removeAllSwidTag ibm.com_Operational_Decision_Manager_Containers_-_CP4BA_-_Non_Prod-*.swidtag
fi
echo "DBAMC configuration : remove all ODM Swidtag"
removeAllSwidTag ibm.com_IBM_ODM_Server*.swidtag
removeAllSwidTag ibm.com_IBM_ODM_Server_for_Non-Production*.swidtag
Expand Down
32 changes: 21 additions & 11 deletions common/script/configureTlsSecurity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,27 @@ fi
CERTDIR="/config/security/trusted-cert-volume/"
if [ -d $CERTDIR ]; then
cd $CERTDIR
for dir in *; do
echo "Importing trusted certificates $dir"
if [ -d $dir ]; then
if [ -f $dir/tls.crt ]; then
# Don't know if we need to delete the Alias. If don't delete it there is an error
keytool -delete -alias 0trust_$dir -storepass $DEFAULT_TRUSTSTORE_PASSWORD -keystore /config/security/truststore.jks > /dev/null
keytool -import -v -trustcacerts -alias 0trust_$dir -file $dir/tls.crt -keystore /config/security/truststore.jks -storepass $DEFAULT_TRUSTSTORE_PASSWORD -noprompt
else
echo "Couldn't find certificate $dir/tls.crt skipping this certificate "
fi
fi
TRUSTSTORE=/config/security/truststore.jks
i=0
for file in $(find . -name "*.crt")
do
echo "Importing trusted certificates $file"
i=$((i+1))
ALIASNAME="trust_$i_$file"
keytool -delete -alias 0$ALIASNAME -storepass $DEFAULT_TRUSTSTORE_PASSWORD -keystore $TRUSTSTORE > /dev/null
keytool -import -v -trustcacerts -alias 0$ALIASNAME -file $file -keystore $TRUSTSTORE -storepass $DEFAULT_TRUSTSTORE_PASSWORD -noprompt
done
echo "done"
fi

if [ -f "/config/resources/ibm-public.crt" ]
then
echo "Importing IBM Public certificate"
keytool -import -v -trustcacerts -alias IBM-PUBLIC -file /config/resources/ibm-public.crt -keystore /config/security/truststore.jks -storepass $DEFAULT_TRUSTSTORE_PASSWORD -noprompt
fi

if [ -f "/config/resources/ibm-docs.crt" ]
then
echo "Importing IBM Docs certificate"
keytool -import -v -trustcacerts -alias IBM-DOCS -file /config/resources/ibm-docs.crt -keystore /config/security/truststore.jks -storepass $DEFAULT_TRUSTSTORE_PASSWORD -noprompt
fi
7 changes: 7 additions & 0 deletions common/script/initVariables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ then
echo "ODM_CONTEXT_ROOT unset : set blank"
export ODM_CONTEXT_ROOT=""
fi

if [ -s "$SCRIPT/init/container.env" ]
then
set -o allexport
source $SCRIPT/init/container.env
set +o allexport
fi
36 changes: 26 additions & 10 deletions common/script/updateDatasource.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,32 @@ fi
if [ -n "$DB_PORT_NUMBER" ]
then
echo "Set database port number to $DB_PORT_NUMBER"
# Update port in case of PostgreSQL
sed -i 's|5432|'$DB_PORT_NUMBER'|g' /config/datasource.xml
# Update port in case of DB2
sed -i 's|50000|'$DB_PORT_NUMBER'|g' /config/datasource.xml
# Update port in case of Derby
sed -i 's|1527|'$DB_PORT_NUMBER'|g' /config/datasource.xml
# Update port in case of MySQL
sed -i 's|3306|'$DB_PORT_NUMBER'|g' /config/datasource.xml
# Update port in case of SQL server
sed -i 's|1433|'$DB_PORT_NUMBER'|g' /config/datasource.xml
sed -i 's|DB_PORT_NUMBER|'$DB_PORT_NUMBER'|g' /config/datasource.xml
else
if [ -n "$DB_TYPE" ]
then
echo "No provided DB_PORT_NUMBER, set default database port according to $DB_TYPE"
case $DB_TYPE in
*derby* )
sed -i 's|DB_PORT_NUMBER|1527|g' /config/datasource.xml
;;
*mysql* )
sed -i 's|DB_PORT_NUMBER|3306|g' /config/datasource.xml
;;
*db2* )
sed -i 's|DB_PORT_NUMBER|50000|g' /config/datasource.xml
;;
*postgres* )
sed -i 's|DB_PORT_NUMBER|5432|g' /config/datasource.xml
;;
*sqlserver* )
sed -i 's|DB_PORT_NUMBER|1433|g' /config/datasource.xml
;;
esac
else
echo "Set DB_PORT_NUMBER to 5432 as using PostgreSQL by default"
sed -i 's|DB_PORT_NUMBER|5432|g' /config/datasource.xml
fi
fi

if [ -n "$DB_NAME" ]
Expand Down
1 change: 1 addition & 0 deletions decisioncenter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ COPY --chown=1001:0 $ODMDOCKERDIR/common/config/jvm/jvm.options /config/configDr
COPY --chown=1001:0 $ODMDOCKERDIR/common/security/ltpa.keys /config/resources/security/ltpa.keys
COPY --chown=1001:0 $ODMDOCKERDIR/common/security/keystore.jks /config/security/keystore.jks
COPY --chown=1001:0 $ODMDOCKERDIR/common/security/truststore.jks /config/security/truststore.jks
COPY --chown=1001:0 $ODMDOCKERDIR/common/resources/ibm-public.crt /config/resources/ibm-public.crt

COPY --chown=1001:0 $ODMDOCKERDIR/common/drivers /config/resources
RUN chmod -R 777 /config
Expand Down
2 changes: 1 addition & 1 deletion decisioncenter/config/datasource-db2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
user="odmusr"
password="odmpwd"
serverName="dbserver"
portNumber="50000"
portNumber="DB_PORT_NUMBER"
sslConnection="false"/>
</dataSource>

Expand Down
2 changes: 1 addition & 1 deletion decisioncenter/config/datasource-derby.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
agedTimeout="30m"/>
<properties.derby.client databaseName="odmdb"
serverName="dbserver"
portNumber="1527"
portNumber="DB_PORT_NUMBER"
createDatabase="create"
user="odmusr"
password="odmpwd" />
Expand Down
2 changes: 1 addition & 1 deletion decisioncenter/config/datasource-mysql.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
user="odmusr"
password="odmpwd"
serverName="dbserver"
portNumber="3306"/>
portNumber="DB_PORT_NUMBER"/>
</dataSource>

</server>
Loading

0 comments on commit 9cb056a

Please sign in to comment.