This repository contains:
- Dockerfile of GigaSpaces XAP
- Azure templates to run XAP on Azure
- Kubernetes deployment configuration files to deploy XAP with Kubernetes
-
Install Docker.
-
Clone xap-docker
-
cd xap-docker
-
Build an image from Dockerfile:
docker build -t gigaspaces/xap:12.1.0 .
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
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'