Skip to content

Commit 4b4747c

Browse files
authored
Cloudbank v1.0.1 (#27)
* added fix for SIDB template * Updated XE to FREE
1 parent 72a17bd commit 4b4747c

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

cloudbank/backend-springboot/environment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export localbankqueuename="BANKAQUEUE"
66
export localbankqueueschema="aquser"
77
export banksubscribername="banka_service"
88
export bankdbuser="bankauser"
9-
export bankdburl="jdbc:oracle:thin:@//$(kubectl get singleinstancedatabase cbtransfer01 -o jsonpath='{.status.pdbConnectString}')"
9+
export bankdburl="jdbc:oracle:thin:@//$(kubectl -n cloudbank get singleinstancedatabase cbtransfer01 -o jsonpath='{.status.pdbConnectString}')"
1010
export bankdbpw="$(state_get .lab.fixed_demo_user_credential)"

cloudbank/backend-springboot/src/main/java/com/cloudbank/springboot/transfers/TransferController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class TransferController {
3939
final String bankdbuser = System.getenv("bankdbuser");
4040
final String bankdbpw = System.getenv("bankdbpw");
4141
final String bankdburl = System.getenv("bankdburl");
42-
// bankdburl example: "jdbc:oracle:thin:@//<ip_address>:1521/XEPDB1";
42+
// bankdburl example: "jdbc:oracle:thin:@//<ip_address>:1521/FREEPDB1";
4343

4444
//transfer id is currently just the currentTimeMillis and not persisted
4545
private Map<String, TransferInformation> transferLedger = new HashMap<>();

cloudbank/kubernetes/sidb-create-template.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,25 @@ metadata:
66
spec:
77

88
## DB edition
9-
edition: express
9+
edition: free
10+
## Use only alphanumeric characters for sid
11+
sid: FREE
1012

1113
## Secret containing SIDB password mapped to secretKey
1214
adminPassword:
1315
secretName: %SIDB_ADMIN_PWD_SECRET%
1416

1517
## Database Image
1618
image:
17-
pullFrom: container-registry.oracle.com/database/express:latest
18-
prebuiltDB: true
19+
pullFrom: container-registry.oracle.com/database/free:latest
20+
prebuiltDB: false
1921

2022
## Persistence is optional for prebuilt DB image
2123
## if specified, the prebuilt DB datafiles are copied over to the persistant volume before DB startup
22-
#persistence:
23-
# size: 50Gi
24-
# storageClass: "oci-bv"
25-
# accessMode: "ReadWriteOnce"
24+
persistence:
25+
size: 50Gi
26+
storageClass: "oci-bv"
27+
accessMode: "ReadWriteOnce"
2628

2729
## Count of Database Pods.
2830
replicas: 1

cloudbank/sql/configure-sidb.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
database=$1
44
password=$2
5-
connection='XEPDB1'
5+
connection='FREEPDB1'
66

77
{
8-
echo "alter session set container=XEPDB1;"
8+
echo "alter session set container=FREEPDB1;"
99
echo "connect sys/$password@$connection as sysdba"
1010
cat AdminCreateUsers-SIDBXE.sql
1111
echo "conn aquser/$password@$connection"

0 commit comments

Comments
 (0)