Skip to content

Commit c1859cd

Browse files
committed
Add JBoss EWS on RHEL
1 parent d82a709 commit c1859cd

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

rhel-jbossews/Dockerfile

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM rhel6:latest
2+
3+
# Update the system
4+
RUN yum -y update
5+
RUN yum -y install unzip apr-util mailcap
6+
RUN yum clean all
7+
8+
ADD jboss-ews-httpd-2.0.1-RHEL6-x86_64.zip /opt/
9+
RUN unzip -q /opt/jboss-ews-httpd-2.0.1-RHEL6-x86_64.zip -d /opt/
10+
11+
# Remove unneeded zip files
12+
RUN rm /opt/*.zip
13+
14+
# Create the apache user
15+
RUN groupadd -g 48 -r apache
16+
RUN useradd -c "Apache" -u 48 -g apache -s /sbin/nologin -r -d /opt/jboss-ews-2.0/httpd apache
17+
RUN chown -R apache:apache /opt/jboss-ews-2.0/httpd
18+
19+
# Apply the custom mod_cluster configuration
20+
ADD mod_cluster.conf /opt/jboss-ews-2.0/httpd/conf.d/mod_cluster.conf
21+
22+
# Not required + prevents httpd from boot
23+
RUN rm /opt/jboss-ews-2.0/httpd/conf.d/auth_kerb.conf
24+
25+
# Run the postinstall script
26+
RUN cd /opt/jboss-ews-2.0/httpd && ./.postinstall
27+
28+
USER apache
29+
EXPOSE 80
30+
31+
CMD ["/opt/jboss-ews-2.0/httpd/sbin/httpd", "-DFOREGROUND", "-f", "/opt/jboss-ews-2.0/httpd/conf/httpd.conf"]

rhel-jbossews/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rhel-jbosseap
2+
=============
3+
4+
JBoss Enterprise Web Server 2.x (EWS) Red Hat Enterprise Linux 6
5+
6+
## Required binaries for build
7+
8+
To build this image, you will need the following binaries in the build context:
9+
10+
1. [`jboss-ews-httpd-2.0.1-RHEL6-x86_64.zip`](https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=webserver&downloadType=distributions)

rhel-jbossews/mod_cluster.conf

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
2+
LoadModule slotmem_module modules/mod_slotmem.so
3+
LoadModule manager_module modules/mod_manager.so
4+
LoadModule advertise_module modules/mod_advertise.so
5+
6+
MemManagerFile /opt/jboss-ews-2.0/httpd/cache/mod_cluster
7+
8+
<IfModule manager_module>
9+
<VirtualHost *:80>
10+
ServerAdvertise on
11+
EnableMCPMReceive
12+
<Location /mod_cluster_manager>
13+
SetHandler mod_cluster-manager
14+
Allow from all
15+
</Location>
16+
</VirtualHost>
17+
</IfModule>

0 commit comments

Comments
 (0)