Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.06 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.06 KB

Hazelcast for Bucket 4J Quick Start

Hazelcast Docker image with JCache and Bucket4J jars in the classpath, for people willing to quickly use Bucket4J with a remote Hazlecast Server.

It is the same as the original Hazelcast docker image with the addition of:

  1. hazelcast.xml with the ability to expose the TCP port to the external world based on this Stackoverflow post
  2. JCache and Bucket4J jars added to the classpath to make it easy to use with Bucket4J. More details in this Github issue

Docker image available at: https://hub.docker.com/r/fsamir/hazelcast-bucket4j/

Running

docker run --name my-hazelcast -d -e JAVA_OPTS="-Dhazelcast.config=/opt/hazelcast/hazelcast.xml -Dhazelcast.ip=`ip route get 8.8.8.8 | awk '{print $NF; exit}'` -Dhazelcast.port=5701" -ti fsamir/hazelcast-bucket4j:3.9.2

Building

 docker build  -t fsamir/hazelcast-bucket4j:3.9.2 .