Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile proposal #2 #57

Open
wants to merge 1 commit into
base: 3.x-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cordova
dist
tutorial
.git
demo
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ _site
_tmp
classes
.forge_settings
jboss-eap-6.3.0.zip
ticket-monster.war
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Use the JDK 7 image as the base
FROM jboss/base-jdk:7

MAINTAINER [email protected]

# Install JBoss EAP
ENV EAP_VERSION 6.3.0
ENV EAP_MINOR_VERSION 6.3

# Add the JBoss EAP distribution to /opt, and make jboss the owner of the extracted tar content
# Remember to fetch and place the jboss eap distribution in the same directory as the docker file.
ADD ./jboss-eap-$EAP_VERSION.zip /opt/jboss/
USER root
RUN chown jboss /opt/jboss/jboss-eap-$EAP_VERSION.zip
USER jboss
WORKDIR /opt/jboss
RUN unzip jboss-eap-$EAP_VERSION.zip && mv jboss-eap-$EAP_MINOR_VERSION jboss-eap && rm jboss-eap-$EAP_VERSION.zip

# Set the JBOSS_HOME env variable
ENV JBOSS_HOME /opt/jboss/jboss-eap

# Expose the ports we're interested in
EXPOSE 8080 9990

# Add the TicketMonster WAR to the deployments directory of JBoss EAP.
# Remember to place the TicketMonster WAR into the root directory before running the Docker build
# You can build it and place it in the root dir, using:
# mvn -f demo clean package && cp demo/target/ticket-monster.war .
ADD ./ticket-monster.war /opt/jboss/jboss-eap/standalone/deployments/

# Set the default command to run on boot
# This will boot JBoss EAP in the standalone mode and bind to all interfaces
CMD ["/opt/jboss/jboss-eap/bin/standalone.sh", "-b", "0.0.0.0"]