|
| 1 | +{ |
| 2 | + "jpsType": "install", |
| 3 | + "application": { |
| 4 | + "name": "Weblogic Cluster", |
| 5 | + "homepage": "http://jelastic.com/", |
| 6 | + "description": "Autoscalable and Highly Available Weblogic Cluster", |
| 7 | + "env": { |
| 8 | + "topology": { |
| 9 | + "nodes": [ |
| 10 | + { |
| 11 | + "nodeType": "docker", |
| 12 | + "cloudlets": 16, |
| 13 | + "nodeGroup": "admin", |
| 14 | + "displayName": "AdminServer", |
| 15 | + "docker": { |
| 16 | + "registry": { |
| 17 | + "user": "$PRIVATE_HUB_USER", |
| 18 | + "password": "$PRIVATE_HUB_PASSWORD" |
| 19 | + }, |
| 20 | + "image": "rsjelastic/weblogic:latest", |
| 21 | + "env": { |
| 22 | + "WLSADMIN_ADMIN_LOGIN": "weblogic", |
| 23 | + "WLSADMIN_ADMIN_PASSWORD": "welcome1", |
| 24 | + "PORT": "80", |
| 25 | + "SERVER_ROLE": "admin" |
| 26 | + }, |
| 27 | + "volumes": [ |
| 28 | + "/u01/oracle/weblogic/user_projects/domains/base_domain" |
| 29 | + ] |
| 30 | + } |
| 31 | + }, |
| 32 | + { |
| 33 | + "nodeType": "docker", |
| 34 | + "cloudlets": 16, |
| 35 | + "count": 1, |
| 36 | + "nodeGroup": "cp", |
| 37 | + "displayName": "ManagedServer", |
| 38 | + "docker": { |
| 39 | + "registry": { |
| 40 | + "user": "$PRIVATE_HUB_USER", |
| 41 | + "password": "$PRIVATE_HUB_PASSWORD" |
| 42 | + }, |
| 43 | + "image": "rsjelastic/weblogic:latest", |
| 44 | + "env": { |
| 45 | + "WLSADMIN_ADMIN_LOGIN": "$ADMIN_LOGIN", |
| 46 | + "WLSADMIN_ADMIN_PASSWORD": "$ADMIN_PASSWORD", |
| 47 | + "PORT": "80", |
| 48 | + "SERVER_ROLE": "managed" |
| 49 | + }, |
| 50 | + "volumes": [ |
| 51 | + "/u01/oracle/weblogic/user_projects/domains/base_domain" |
| 52 | + ], |
| 53 | + "links": "admin:wlsadmin" |
| 54 | + } |
| 55 | + } |
| 56 | + ] |
| 57 | + }, |
| 58 | + "onBeforeRemoveNode[nodeGroup:cp]": { |
| 59 | + "executeShellCommands": { |
| 60 | + "nodeId": "${event.params.nodeid}", |
| 61 | + "commands": [ |
| 62 | + "wlst.sh -skipWLSModuleScanning deleteManagedServer.py &>> /var/log/run.log", |
| 63 | + "test -d /log && cp /var/log/run.log /log/$(hostname)-run.log || echo" |
| 64 | + ] |
| 65 | + } |
| 66 | + } |
| 67 | + } |
| 68 | + } |
| 69 | +} |
0 commit comments