Java EE 7 Hands-on Lab has been delivered all around the world and is a pretty standard application that shows design patterns and anti-patterns for a typical Java EE 7 application.
Pull the Docker image that contains WildFly and pre-built Java EE 7 application WAR file as shown:
docker pull classroom.example.com:5000/javaee7-holThe javaee7-hol Dockerfile is based on jboss/wildfly and adds the movieplex7 application as war file.
Run it as:
docker run -it -p 8080:8080 classroom.example.com:5000/javaee7-holSee the application in action at http://dockerhost:8080/movieplex7/.
This uses an in-memory database with WildFly application server as shown in the image:
Only two changes are required to the standard jboss/wildfly image:
-
Start WildFly in full platform:
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-c", "standalone-full.xml", "-b", "0.0.0.0"] -
WAR file is copied to
standalone/deploymentsdirectory as:RUN curl -L https://github.com/javaee-samples/javaee7-hol/blob/jrebel/solution/movieplex7-1.0-SNAPSHOT.war?raw=true -o /opt/jboss/wildfly/standalone/deployments/movieplex7-1.0-SNAPSHOT.war

