Hello sjiveson. I’ve tested this but it didn’t work neither. Below are the files and the configuration in rancher.
Thanks!
ehcache.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--terracottaConfig url="localhost:9510" /-->
<!-- peer configuration -->
<!-- Listener port of this analyzer instance 8081 to put-->
<!-- <cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=manual, rmiUrls="/>-->
<cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="hostName=, peerDiscovery=automatic,multicastGroupAddress=230.0.0.1,multicastGroupPort=4446,timeToLive=64"/>
<!-- Listener port of this analyzer instance 8081 me put-->
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="hostName=,port=40001,socketTimeoutMillis=2000"/>
<defaultCache eternal="true" maxElementsInMemory="500" overflowToDisk="false" memoryStoreEvictionPolicy="LFU">
<bootstrapCacheLoaderFactory
class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"
propertySeparator=","/>
</defaultCache>
<cache name="identisiteCache" logging="true" eternal="false" timeToIdleSeconds="60" maxElementsInMemory="1000"
overflowToDisk="false" statistics="true">
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=false, replicatePuts=true, replicateUpdates=true,
replicateUpdatesViaCopy=false, replicateRemovals=true "/>
</cache>
<cache name="utilConfigurationCache" logging="true" eternal="true" timeToLiveSeconds="0" timeToIdleSeconds="0" maxElementsInMemory="500"
overflowToDisk="false" statistics="true">
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=false, replicatePuts=true, replicateUpdates=true,
replicateUpdatesViaCopy=false, replicateRemovals=true "/>
</cache>
...
...
Dockerfile
RUN apt-get -y install software-properties-common
RUN apt-get -y install unzip
RUN
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections &&
add-apt-repository -y ppa:webupd8team/java &&
apt-get update &&
apt-get install -y oracle-java7-installer &&
rm -rf /var/lib/apt/lists/* &&
rm -rf /var/cache/oracle-jdk7-installer
ENV JAVA_HOME /usr/lib/jvm/java-7-oracle
RUN mkdir /opt/app
COPY app.zip /opt/app
WORKDIR /opt/app
RUN unzip app.zip
RUN rm -rf /opt/app/application/logs/catalina.out
RUN chmod -R a+x /opt/app/application/bin
RUN mkdir /opt/util
COPY PropertyReplacer.jar /opt/util/
WORKDIR /opt/app/application/bin/
ENV PATH /opt/app/application/bin:$PATH
EXPOSE 8080
EXPOSE 40001
EXPOSE 4446
COPY docker-entrypoint.sh /
RUN chmod a+x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD [“catalina.sh”, “run”]
Screenshot of the service configuration