Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit c152bc3

Browse files
committed
fix docker issues
1 parent c2acaf8 commit c152bc3

File tree

7 files changed

+59
-11
lines changed

7 files changed

+59
-11
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ RUN ["unzip", "/data/jboss-4.2.3.zip"]
1010

1111
ENV JBOSS_HOME /data/jboss-4.2.3.GA
1212

13-
ADD ./start-jboss.sh /data/jboss-4.2.3.GA/bin/
14-
ADD ./TC.prod.ldap.keystore /data/jboss-4.2.3.GA/bin/
13+
ADD ./jboss_files/myserver.keystore /data/jboss-4.2.3.GA/server/default/conf/
14+
ADD ./jboss_files/run.conf /data/jboss-4.2.3.GA/bin/
1515
ADD ./jboss_files/server.xml /data/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/
1616

1717
ADD ./ear-web/target/direct /data/jboss-4.2.3.GA/server/default/deploy/direct.ear/
@@ -36,4 +36,4 @@ RUN mkdir /data/temp_files
3636
RUN rm /data/jboss-4.2.3.zip
3737
RUN rm /data/security.ear
3838

39-
CMD ["/data/jboss-4.2.3.GA/bin/start-jboss.sh"]
39+
CMD ["/data/jboss-4.2.3.GA/bin/run.sh", "-b0.0.0.0", "-Djboss.remoting.version=1"]

TC.prod.ldap.keystore

-51.1 KB
Binary file not shown.

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ services:
2828
- "tc-cache"
2929
ports:
3030
- "8080:8080"
31+
- "443:443"

jboss_files/myserver.keystore

2.13 KB
Binary file not shown.

jboss_files/run.conf

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## -*- shell-script -*- ######################################################
2+
## ##
3+
## JBoss Bootstrap Script Configuration ##
4+
## ##
5+
##############################################################################
6+
7+
### $Id: run.conf 62747 2007-05-02 17:43:36Z [email protected] $
8+
9+
#
10+
# This file is optional; it may be removed if not needed.
11+
#
12+
13+
#
14+
# Specify the maximum file descriptor limit, use "max" or "maximum" to use
15+
# the default, as queried by the system.
16+
#
17+
# Defaults to "maximum"
18+
#
19+
#MAX_FD="maximum"
20+
21+
#
22+
# Specify the profiler configuration file to load.
23+
#
24+
# Default is to not load profiler configuration file.
25+
#
26+
#PROFILER=""
27+
28+
#
29+
# Specify the location of the Java home directory. If set then $JAVA will
30+
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
31+
#
32+
#JAVA_HOME="/opt/java/jdk"
33+
34+
#
35+
# Specify the exact Java VM executable to use.
36+
#
37+
#JAVA=""
38+
39+
#
40+
# Specify options to pass to the Java VM.
41+
#
42+
if [ "x$JAVA_OPTS" = "x" ]; then
43+
JAVA_OPTS="-Xms1024m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
44+
fi
45+
46+
# Sample JPDA settings for remote socket debuging
47+
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
48+
49+
# Sample JPDA settings for shared memory debugging
50+
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"

jboss_files/server.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
-->
1313
<Service name="jboss.web">
1414

15-
<!-- <Connector port="443" address="${jboss.bind.address}" protocol="HTTP/1.1"-->
16-
<!-- SSLEnabled="true" maxThreads="150" scheme="https" secure="true"-->
17-
<!-- clientAuth="false" sslProtocol="TLS" -->
18-
<!-- keystoreFile="${jboss.server.home.dir}/conf/myserver.keystore" -->
19-
<!-- keystorePass="topcoder" />-->
15+
<Connector port="443" address="${jboss.bind.address}" protocol="HTTP/1.1"
16+
SSLEnabled="true" maxThreads="150" scheme="https" secure="true"
17+
clientAuth="false" sslProtocol="TLS"
18+
keystoreFile="${jboss.server.home.dir}/conf/myserver.keystore"
19+
keystorePass="topcoder" />
2020

2121
<!-- A "Connector" represents an endpoint by which requests are received
2222
and responses are returned. Documentation at :

start-jboss.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)