From db70dd5902542e055fc536467516d608b3cfdbf5 Mon Sep 17 00:00:00 2001 From: Paulo Pires Date: Tue, 2 Jun 2015 22:10:26 +0100 Subject: [PATCH] Added Hazelcast example Dockerfile. --- examples/hazelcast/Dockerfile | 11 +++++++++++ examples/hazelcast/README.md | 20 -------------------- 2 files changed, 11 insertions(+), 20 deletions(-) create mode 100644 examples/hazelcast/Dockerfile diff --git a/examples/hazelcast/Dockerfile b/examples/hazelcast/Dockerfile new file mode 100644 index 00000000000..55963290c1a --- /dev/null +++ b/examples/hazelcast/Dockerfile @@ -0,0 +1,11 @@ +FROM quay.io/pires/docker-jre:8u45-2 + +MAINTAINER Paulo Pires + +EXPOSE 5701 + +RUN \ + curl -Lskj https://github.com/pires/hazelcast-kubernetes-bootstrapper/releases/download/0.3.1/hazelcast-kubernetes-bootstrapper-0.3.1.jar \ + -o /bootstrapper.jar + +CMD java -jar /bootstrapper.jar diff --git a/examples/hazelcast/README.md b/examples/hazelcast/README.md index 98351aa2573..acabf8fac5a 100644 --- a/examples/hazelcast/README.md +++ b/examples/hazelcast/README.md @@ -1,23 +1,3 @@ -hazelcast-kubernetes -==================== - -Hazelcast clustering for Kubernetes made easy. - -Lean (186MB) JRE 8u45 + Hazelcast 3.4.2 + Kubernetes discovery Docker image, based on `progrium/busybox`. - -## Pre-requisites - -* Docker 1.5+ -* Kubernetes 0.18.0 or newer cluster - -## Kubernetes cluster - -You can test with a local cluster. Check [this other repository from yours truly](https://github.com/pires/kubernetes-vagrant-coreos-cluster). - -## Docker image - -The image is already available at [quay.io/pires](https://quay.io/repository/pires/hazelcast-kubernetes) - ## Cloud Native Deployments of Hazelcast using Kubernetes The following document describes the development of a _cloud native_ [Hazelcast](http://hazelcast.org/) deployment on Kubernetes. When we say _cloud native_ we mean an application which understands that it is running within a cluster manager, and uses this cluster management infrastructure to help implement the application. In particular, in this instance, a custom Hazelcast ```bootstrapper``` is used to enable Hazelcast to dynamically discover Hazelcast nodes that have already joined the cluster.