Skip to content

Commit 07dae77

Browse files
committed
Issue #130 - enable build and deploy of simple application
1 parent d358e00 commit 07dae77

File tree

6 files changed

+45
-1
lines changed

6 files changed

+45
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
#
3+
#Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
4+
#
5+
#Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6+
#
7+
rm -Rf archive
8+
mkdir -p archive/wlsdeploy/applications
9+
cd simple-app
10+
jar cvf ../archive/wlsdeploy/applications/simple-app.war *
11+
cd ../archive
12+
jar cvf ../archive.zip *
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/sh
22
#
3-
#Copyright (c) 2014-2018 Oracle and/or its affiliates. All rights reserved.
3+
#Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
44
#
55
#Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
66
#
77
docker build \
88
--build-arg WDT_MODEL=simple-topology.yaml \
9+
--build-arg WDT_ARCHIVE=archive.zip \
910
-t 12213-domain-wdt .
1011

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
5+
<welcome-file-list>
6+
<welcome-file>/simple.html</welcome-file>
7+
</welcome-file-list>
8+
</web-app>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
3+
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
4+
<context-root>/simple</context-root>
5+
</weblogic-web-app>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html>
2+
<head>
3+
<title>Simple Application</title>
4+
</head>
5+
<body>
6+
<h1>Simple Application</h1>
7+
<p>This is the simple application.</p>
8+
</body>
9+
</html>

core/src/main/samples/docker-domain/simple-topology.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,12 @@ resources:
8888
MaxCapacity: 15
8989
TestTableName: SQL ISVALID
9090
TestConnectionsOnReserve: true
91+
appDeployments:
92+
Application:
93+
# Quote needed because of hyphen in string
94+
'simple-app':
95+
SourcePath: 'wlsdeploy/applications/simple-app.war'
96+
Target: AdminServer
97+
ModuleType: war
98+
StagingMode: nostage
99+
PlanStagingMode: nostage

0 commit comments

Comments
 (0)