paulschwarz / chuan

Boilerplate for Gradle + Docker + JBoss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#串

How to use

  1. Run ./gradlew docker, this rebuilds the docker image.
  2. Run ./run.sh, this runs the container and deploys the war file to the JBoss server.

The sample servlets is available on <host>:8080/bff/.

About the Wildfly Docker base image

https://hub.docker.com/r/jboss/wildfly/

Make gradle fast!

On your development machine turn on the gradle daemon by simply run this command touch ~/.gradle/gradle.properties && echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties

Don't do this on the continuous integration server.

After this, gradle will cache configuration making it faster to run subsequent tasks. For more, see https://docs.gradle.org/2.12/userguide/gradle_daemon.html

Using docker-machine?

Run $ docker-machine env <docker-machine-name>

export DOCKER_TLS_VERIFY="1"  
export DOCKER_HOST="tcp://<host>:2376"   
export DOCKER_CERT_PATH="..."  
export DOCKER_MACHINE_NAME="..."  
# Run this command to configure your shell:  
# eval "$(docker-machine env <docker-machine-name>)"  

From the above, you need to run eval "$(docker-machine env <docker-machine-name>)". Also from this output you can see the IP address of the docker host machine.

Todo

About

Boilerplate for Gradle + Docker + JBoss


Languages

Language:Java 95.3%Language:Shell 4.7%