$ docker-machine create --driver virtualbox javaee7-websocket
$ eval $(docker-machine env javaee7-websocket)
# Build the project with Maven
$ docker-compose up
# Deploy the app on WildFly in a Docker container
$ docker-compose -f deploy.yml up
$ open http://$(docker-machine ip javaee7-websocket)
-
Clone this project :
git clone https://github.com/mgreau/javaee7-websocket
-
Start wildfly :
$JBOSS_HOME/bin/standalone.sh
-
Build the war and deploy it automatically with maven :
mvn clean package jboss-as:deploy
-
Open your browser on http://localhost:8080/usopen/index.html