-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
executable file
·37 lines (27 loc) · 911 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Use jbossdemocentral/developer as the base
FROM jbossdemocentral/developer
# Maintainer details
MAINTAINER Stefano Picozzi <[email protected]>
# Environment Variables
ENV BRMS_HOME /opt/jboss/brms/jboss-eap-6.4
ENV BRMS_VERSION_MAJOR 6
ENV BRMS_VERSION_MINOR 1
ENV BRMS_VERSION_MICRO 0
ENV BRMS_VERSION_BUILD GA
ENV EAP_VERSION_MAJOR 6
ENV EAP_VERSION_MINOR 4
ENV EAP_VERSION_MICRO 0
# Swtich back to root user to perform cleanup
USER root
# Apply the prebuilt option
COPY installs/jboss-eap-6.4.zip /opt/jboss/brms/jboss-eap-6.4.zip
COPY m2 /opt/jboss/.m2
RUN unzip /opt/jboss/brms/jboss-eap-6.4.zip -d /opt/jboss/brms/
# Fix permissions on support files
RUN chown -R jboss:jboss $BRMS_HOME
# Run as JBoss
USER jboss
# Expose Ports
EXPOSE 9990 9999 9090 8080
# Run BRMS
CMD ["/opt/jboss/brms/jboss-eap-6.4/bin/standalone.sh", "-c", "standalone.xml", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]