Skip to content

dgur1n/xap-docker

 
 

Repository files navigation

XAP 12.1 Docker deployment and RESTful orchestration

This repository contains:

  1. Dockerfile of GigaSpaces XAP
  2. Azure templates to run XAP on Azure
  3. Kubernetes deployment configuration files to deploy XAP with Kubernetes

Installation

  1. Install Docker.

  2. Clone xap-docker

  3. cd xap-docker

  4. Build an image from Dockerfile: docker build -t gigaspaces/xap:12.1.0 .

Run XAP 12.1 data grid across three containers

XAP Manager node

Run a 3-quorum XAP 12.1 cluster

docker run --name xap -d -p 8090:8090 -P gigaspaces/xap:12.1.0 --manager
docker run --name xap2 -d -P gigaspaces/xap:12.1.0 --manager
docker run --name xap3 -d -P gigaspaces/xap:12.1.0 --manager

REST Orchestration

List all the hosts in the grid:

curl -X GET --header 'Accept: application/json' 'http://localhost:8090/v1/hosts'

Launch a GSC with 2GB heap:

curl -X POST --header 'Content-Type: application/json' -d '{ \ 
	"host": "172.17.0.2", \ 
	"memory": "2g" \ 
	}' 'http://localhost:8090/v1/containers'

Deploy a space with 1 partition, no backups:

curl -X POST 'http://localhost:8090/v1/spaces?name=mySpace&partitions=1&backups=false'

About

XAP Docker images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 59.2%
  • Makefile 40.8%