This repo contains docker image for Hazelcast open-source in-memory data-grid.
You need to pull hazelcast docker image from Docker registry via command below :
docker pull hazelcast/hazelcast
After that you should be able to run Hazelcast docker image by :
docker run -ti hazelcast/hazelcast
You need to pull hazelcast enterpise docker image from Docker registry via command below :
docker pull hazelcast/hazelcast-enterprise:latest
After that you should be able to run Hazelcast docker image by :
docker run -ti -e HZ_LICENSE_KEY=YOUR_LICENSE_KEY hazelcast/hazelcast-enterprise:latest
Then a Hazelcast Node will be started..
You need to pull hazelcast enterpise docker image from Docker registry via command below :
docker pull hazelcast/management-center:latest
After that you should be able to run Hazelcast docker image by :
docker run -ti -p 8080:8080 hazelcast/management-center:latest
then open from browser MACHINE_IP:8080/mancenter
You need to create a new Dockerfile and build it in order to be able to use it. In the Dockerfile example below we are creating a new image based on Hazelcast image and adding our own configuration file, from our host to the container, which is going to be used with Hazelcast when the container runs.
FROM hazelcast:latest
# Add your custom hazelcast.xml
ADD hazelcast.xml $HZ_HOME
# Run hazelcast
CMD java -cp $HZ_HOME/hazelcast-$HZ_VERSION.jar com.hazelcast.core.server.StartServer
After creating the Dockerfile you need to build it. You can build your Dockerfile with the command below :
docker build .
After that you need to be able to run your own container with id or tag (if you provided -t option while building the image) with docker run command.
Please report issues regarding to Hazelcast docker image by creating github issues on this repository.
If you'd like to make contribution to Hazelcast docker image please feel free to create a pull request.