FROM yannart/jboss-5.1.0.ga-jdk6 | |
# Download the agent and configure the controller-info.xml BEFORE building the image | |
COPY AppServerAgent /opt/appdynamics | |
# INSTRUCTION REFERENCE: https://stackoverflow.com/questions/33364100/how-to-use-tls-1-2-in-java-6 | |
# Update Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6 | |
RUN wget --continue --no-check-certificate --header "Cookie: oraclelicense=a" "https://download.oracle.com/otn-pub/java/jce_policy/6/jce_policy-6.zip" && \ | |
unzip jce_policy-6.zip && \ | |
cp jce/*.jar $JAVA_HOME/jre/lib/security && \ | |
rm jce_policy-6.zip && \ | |
rm jce -Rf | |
# Download Bouncy Castle. ### Note ### 1.65 mentioned in the answer does not work. Use 1.66 instead | |
RUN wget https://www.bouncycastle.org/download/bcprov-jdk15to18-166.jar && \ | |
wget https://www.bouncycastle.org/download/bctls-jdk15to18-166.jar && \ | |
cp *.jar $JAVA_HOME/jre/lib/ext && \ | |
rm *.jar | |
# Update java.security to use bouncy castle | |
COPY java.security $JAVA_HOME/jre/lib/security | |
ENV JAVA_TOOL_OPTIONS=-javaagent:/opt/appdynamics/javaagent.jar |