From 7a763124379174017df190be14333b08c0c8b260 Mon Sep 17 00:00:00 2001 From: jamiecoleman92 Date: Mon, 21 Mar 2016 11:17:04 +0000 Subject: [PATCH] Updated sample to use Java EE7 Updated sample to use Java EE7 --- websphere-liberty/content.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/websphere-liberty/content.md b/websphere-liberty/content.md index 5528a05a6..571676b5a 100644 --- a/websphere-liberty/content.md +++ b/websphere-liberty/content.md @@ -24,7 +24,7 @@ There are also corresponding image tags that contain the version number of the L # Usage -The images are designed to support a number of different usage patterns. The following examples are based on the Java EE6 Liberty [application deployment sample](https://developer.ibm.com/wasdev/docs/article_appdeployment/) and assume that [DefaultServletEngine.zip](https://www.ibm.com/developerworks/mydeveloperworks/blogs/wasdev/resource/DefaultServletEngine.zip) has been extracted to `/tmp` and the `server.xml` updated to accept HTTP connections from outside of the container by adding the following element inside the `server` stanza: +The images are designed to support a number of different usage patterns. The following examples are based on the Java EE7 Liberty [application deployment sample](https://developer.ibm.com/wasdev/docs/article_appdeployment/) and assume that [DefaultServletEngine.zip](https://github.com/WASdev/sample.servlet/releases/download/V1/DefaultServletEngine.zip) has been extracted to `/tmp` and the `server.xml` updated to accept HTTP connections from outside of the container by adding the following element inside the `server` stanza: ```xml @@ -35,7 +35,7 @@ The images are designed to support a number of different usage patterns. The fol ```console $ docker run -d -p 80:9080 -p 443:9443 \ -v /tmp/DefaultServletEngine/dropins/Sample1.war:/config/dropins/Sample1.war \ - websphere-liberty:webProfile6 + websphere-liberty:webProfile7 ``` When the server is started, you can browse to http://localhost/Sample1/SimpleServlet on the Docker host. @@ -47,13 +47,13 @@ The images are designed to support a number of different usage patterns. The fol ```console $ docker run -d -p 80:9080 \ -v /tmp/DefaultServletEngine:/config \ - websphere-liberty:webProfile6 + websphere-liberty:webProfile7 ``` 3. You can also build an application layer on top of this image by using either the default server configuration or a new server configuration. In this example, we have copied the `Sample1.war` from `/tmp/DefaultServletEngine/dropins` to the same directory as the following Dockerfile. ```dockerfile - FROM websphere-liberty:webProfile6 + FROM websphere-liberty:webProfile7 ADD Sample1.war /config/dropins/ ``` @@ -69,7 +69,7 @@ The images are designed to support a number of different usage patterns. The fol Build and run the data volume container: ```dockerfile - FROM websphere-liberty:webProfile6 + FROM websphere-liberty:webProfile7 ADD DefaultServletEngine /config ``` @@ -83,7 +83,7 @@ The images are designed to support a number of different usage patterns. The fol ```console $ docker run -d -p 80:9080 \ - --volumes-from app websphere-liberty:webProfile6 + --volumes-from app websphere-liberty:webProfile7 ``` # Using IBM JRE Class data sharing