Skip to content

Commit ad86a0f

Browse files
committed
Issue #130 - Use dynamic cluster in model; use variables from file in model
1 parent ae0d841 commit ad86a0f

File tree

2 files changed

+14
-38
lines changed

2 files changed

+14
-38
lines changed

samples/docker-domain/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ RUN chmod +xw /u01/oracle/*.sh && \
7575
-java_home ${JAVA_HOME} \
7676
-domain_parent $PRE_DOMAIN_HOME/domains \
7777
-domain_type WLS \
78+
-variable_file /u01/oracle/domain.properties \
7879
$MODEL_OPT \
7980
$ARCHIVE_OPT && \
8081
chown -R oracle:oracle $PRE_DOMAIN_HOME

samples/docker-domain/simple-topology.yaml

Lines changed: 13 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,29 @@
11
domainInfo:
2-
AdminUserName: weblogic
2+
AdminUserName: '@@PROP:ADMIN_USER@@'
33
AdminPassword: welcome1
44
ServerStartMode: dev
55
topology:
6-
Name: my_domain
6+
Name: '@@PROP:DOMAIN_NAME@@'
77
AdminServerName: AdminServer
88
Cluster:
99
mycluster:
1010
ClientCertProxyEnabled: true
11+
ClusterMessagingMode: unicast
12+
DynamicServers:
13+
ServerTemplate: template1
14+
CalculatedListenPorts: false
15+
MaximumDynamicServerCount: 2
16+
ServerNamePrefix: 'ms-'
17+
DynamicClusterSize: 2
18+
MaxDynamicClusterSize: 8
1119
Server:
1220
AdminServer:
1321
Machine: machine1
14-
ListenPort: 7001
15-
SSL:
16-
Enabled: true
17-
ListenPort: 7002
18-
m1:
19-
Machine: machine1
20-
ListenPort: 9003
21-
Cluster: mycluster
22-
ServerStart:
23-
ClassPath: '@@PWD@@/src/test/resources/nosuch.jar'
24-
Arguments: '-Dosgi=true'
25-
SSL:
26-
Enabled: true
27-
ListenPort: 9004
28-
m2:
29-
Machine: machine1
30-
ListenPort: 9005
31-
Cluster: mycluster
32-
ServerStart:
33-
ClassPath: '@@PWD@@/src/test/resources/nosuch.jar'
34-
Arguments: '-Dosgi=true'
35-
SSL:
36-
Enabled : true
37-
ListenPort: 9006
22+
ListenPort: '@@PROP:ADMIN_PORT@@'
3823
ServerTemplate:
3924
template1:
4025
Machine: machine1
41-
ListenPort: 9008
42-
SSL:
43-
Enabled: true
44-
ListenPort: 9009
26+
ListenPort: 9001
4527
Machine:
4628
machine1:
4729
Notes: The only machine
@@ -60,11 +42,6 @@ topology:
6042
MaxTransactions: 4
6143
Notes: JTA notes
6244
resources:
63-
JDBCStore:
64-
JDBCStore99:
65-
Notes: JDBC store notes
66-
Target: m1
67-
DataSource: Generic1
6845
JDBCSystemResource:
6946
Generic1:
7047
Target: mycluster
@@ -84,10 +61,8 @@ resources:
8461
oracle.jdbc.ReadTimeout:
8562
Value: 30000
8663
JDBCConnectionPoolParams:
87-
InitialCapacity: 3
64+
InitialCapacity: 0
8865
MaxCapacity: 15
89-
TestTableName: SQL ISVALID
90-
TestConnectionsOnReserve: true
9166
appDeployments:
9267
Application:
9368
# Quote needed because of hyphen in string

0 commit comments

Comments
 (0)