This project builds a docker container for running JBoss EAP 6.4.5.GA.
Install Docker
Windows 10+ pro users : Prefer Docker for Windows over Docker Toolbox
Mac Users : Prefer Docker for Mac over Docker Toolbox
Windows 7 Users : Docker Toolbox may be your only choice, prefer using Windows 10 Pro machine
More at [https://nickjanetakis.com/blog/should-you-use-the-docker-toolbox-or-docker-for-mac-windows]
If you have access to [downloads/] as the Dockerfile ADD(s)
- JBoss EAP 6.4.0 zip distribution
- JDK rpm
- Folder
/jce-unlimited directory
, ADD(s) JCE unlimited policy files (local_policy.jar / US_export_policy.jar) - Folder
/trusted-root-ca directory
, ADD(s) your trusted root CA files (in .pem format)
If you do not have access to [downloads/]
- Download
jboss-eap-6.4.0.zip
andjdk-8u144-linux-x64.rpm
, place them a local folder - Set build-arg DOWNLOAD_LINK to source dependencies from an absolute local folder instead of [downloads/]
$ docker build . -t simars/redhat-jboss-eap
/Users/usernmae/jboss-eap-dev/jboass-eap-dev
|
|__configuration__ [contains standalone-*.xml etc etc]
|
|__deployments__ [contains ear and wars to be deployed]
look ./example/app.env for typical env required for JBOSS ex JAVA_OPTS=...
You can checkout ./jboess-eap-dev
and ./jboss-eap-ha
base folders as an example
Everything except app.ear file is checked in, just place the ear file in deployments folder
docker run --name app1 -h app1 -d -p 8444:8443 -p 9991:9990 -it --rm --env-file=app.env --privileged -v $(pwd):/base:ro jboss-eap
-v C:/Users/<username>/<working-copy/jboss-eap-dev>:/base:ro
$ docker logs -f app1
$ docker exec -it app1 bash
app1$ ls /base; echo "gives you contents of the base folder mounted";
app1$ tail -f /var/log/jboss/console.log
$ docker stop app1
$ docker rm app1