Public Repository

Last pushed: a year ago
Short Description
Oracle Coherence in Docker Container
Full Description

Forming coherence cluster in containers on multiple Docker hosts using overlay networking.
For demonstration purpose
-- Consider the two machines machine-1 and machine-2
-- Install latest docker (preferably docker-1.11) on both the machines
-- Create a overlay network with the name say my-overlay (https://docs.docker.com/engine/userguide/networking/get-started-overlay/)

-- On machine-1, execute the following command

docker run -itd --name=dcs1 --net=my-overlay kishore320/my_coherence java -cp /coherence/lib/coherence.jar -Dcoherence.wka=dcs1 -Dcoherence.cluster=c1 com.tangosol.net.DefaultCacheServer

-- On machine-2, execute the following command

docker run -itd --name=dcs2 --net=my-overlay kishore320/my_coherence java -cp /coherence/lib/coherence.jar -Dcoherence.wka=dcs1 -Dcoherence.cluster=c1 com.tangosol.net.DefaultCacheServer

-- Look at the dcs1 and dcs2 container logs and observe that they two form the coherence cluster.

Docker Pull Command
Owner
kishore320

Comments (0)