2017-07-13 18:25:26 +00:00
|
|
|
FROM jboss/infinispan-server:8.2.6.Final
|
|
|
|
#FROM jboss/infinispan-server:9.1.0.Final
|
|
|
|
|
2017-11-13 22:38:01 +00:00
|
|
|
ARG LOCAL_SITE
|
|
|
|
ARG REMOTE_SITE
|
|
|
|
|
2017-07-13 18:25:26 +00:00
|
|
|
USER root
|
|
|
|
RUN yum -y install iproute
|
|
|
|
USER jboss
|
|
|
|
|
|
|
|
ENV CONFIGURATION clustered.xml
|
|
|
|
|
|
|
|
ADD configs/ ./
|
|
|
|
ADD *.sh /usr/local/bin/
|
|
|
|
|
2017-11-13 22:38:01 +00:00
|
|
|
RUN sed -e s/%LOCAL_SITE%/$LOCAL_SITE/ -e s/%REMOTE_SITE%/$REMOTE_SITE/ add-keycloak-caches.cli.template > add-keycloak-caches.cli
|
|
|
|
|
2017-07-13 18:25:26 +00:00
|
|
|
USER root
|
|
|
|
RUN chmod -v +x /usr/local/bin/*.sh
|
|
|
|
USER jboss
|
|
|
|
|
2017-11-13 22:38:01 +00:00
|
|
|
RUN $INFINISPAN_SERVER_HOME/bin/ispn-cli.sh --file=add-private-network-interface.cli; \
|
|
|
|
$INFINISPAN_SERVER_HOME/bin/ispn-cli.sh --file=add-keycloak-caches.cli; \
|
2017-07-13 18:25:26 +00:00
|
|
|
cd $INFINISPAN_SERVER_HOME/standalone; rm -rf configuration/standalone_xml_history log data tmp
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=5s --timeout=5s --retries=12 CMD ["infinispan-healthcheck.sh"]
|
|
|
|
ENTRYPOINT [ "docker-entrypoint-custom.sh" ]
|