Created
March 8, 2018 18:41
-
-
Save jdamasceno/f40947fe9f24d20f3401fc035ce70671 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM registry.access.redhat.com/jboss-eap-6/eap64-openshift | |
USER jboss | |
RUN mkdir -p /opt/eap/modules/br/gov/pb/lib/main && mkdir -p /opt/eap/modules/com/informix/main && mkdir -p /opt/eap/modules/com/oracle/main | |
COPY resources/modules/atf /opt/eap/modules/br/gov/pb/lib/main | |
COPY resources/modules/informix /opt/eap/modules/com/informix/main/ | |
COPY resources/modules/oracle /opt/eap/modules/com/oracle/main/ | |
COPY resources/configuration /opt/eap/standalone/configuration | |
USER root | |
RUN mkdir /opt/jdk/ && mkdir -p /var/log/atf | |
RUN curl -o /opt/jdk-8u102-linux-x64.tar.gz http://$IP:8080/artifactory/repo-installation/jdk/jdk/8u102-linux/jdk-8u102-linux-x64.tar.gz && tar -vzxf /opt/jdk-8u102-linux-x64.tar.gz -C /opt/jdk/ && rm /opt/jdk-8u102-linux-x64.tar.gz | |
RUN chown -R jboss:jboss /opt/eap/modules/ | |
RUN chown -R jboss:jboss /opt/eap/standalone/configuration | |
RUN chown -R jboss:jboss /var/log/atf | |
RUN chown -R jboss:jboss /opt/jdk/ | |
RUN chmod 777 -R /opt/eap/standalone/configuration | |
RUN chmod 777 -R /var/log/atf | |
RUN chmod 777 -R /opt/jdk | |
USER jboss | |
RUN curl -o /opt/eap/standalone/deployments/atf.ear http://$IP:8080/artifactory/arquitetura-release-local/br/gov/pb/2.0.8222/atf-2.0.8222.ear | |
RUN curl -o /opt/eap/standalone/deployments/1_atfws.ear http://$IP:8080/artifactory/arquitetura-release-local/br/gov/pb/2.0.3.001/ATFWS-2.0.3.001.ear | |
RUN echo "JAVA_HOME='/opt/jdk/jdk1.8.0_102/'" >> /opt/eap/bin/standalone.conf | |
############################################ | |
# Expose paths and start JBoss | |
############################################ | |
EXPOSE 8080 8778 8888 9990 9999 | |
ENTRYPOINT ["/opt/eap/bin/openshift-launch.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment