2014-09-17 18:57:09 +00:00
|
|
|
FROM jboss/wildfly
|
|
|
|
|
|
|
|
USER root
|
2014-10-07 10:33:27 +00:00
|
|
|
|
|
|
|
# Update yum and install required programs
|
2014-09-17 18:57:09 +00:00
|
|
|
RUN yum install -y unzip && yum install -y wget && yum install -y mc && yum -y install nc
|
|
|
|
RUN yum clean all
|
|
|
|
|
2014-10-07 10:33:27 +00:00
|
|
|
# Download mysql driver
|
2014-09-17 18:57:09 +00:00
|
|
|
RUN cd /tmp
|
|
|
|
RUN wget http://search.maven.org/remotecontent?filepath=mysql/mysql-connector-java/5.1.32/mysql-connector-java-5.1.32.jar
|
2014-10-07 10:33:27 +00:00
|
|
|
RUN mv *.jar /mysql-connector-java-5.1.32.jar
|
2014-09-17 18:57:09 +00:00
|
|
|
|
2014-10-07 10:33:27 +00:00
|
|
|
ADD keycloak-wildfly-trigger.sh /keycloak-wildfly-trigger.sh
|
|
|
|
RUN chmod u+x /keycloak-wildfly-trigger.sh
|
2014-09-17 18:57:09 +00:00
|
|
|
|
2014-10-07 10:33:27 +00:00
|
|
|
ENV JBOSS_HOME /opt/wildfly-8.1.0.Final
|
|
|
|
ENV JBOSS_MODULES_HOME $JBOSS_HOME/modules/system/layers/base
|
|
|
|
ENV JBOSS_TYPE wildfly
|
|
|
|
ENV NODE_PREFIX wf
|
2014-09-17 18:57:09 +00:00
|
|
|
|
|
|
|
EXPOSE 8787
|
|
|
|
|
2014-10-07 10:33:27 +00:00
|
|
|
CMD [ "/keycloak-wildfly-trigger.sh" ]
|
|
|
|
|