1. Images & Charts
  2. infinispan
infinispan

infinispan

Data
Updated 9 hours ago

Infinispan Overview

Secure your stack with a hardened Infinispan image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies.


Use Infinispan to run a distributed, in-memory data grid for fast caching and data storage in a containerized environment. Infinispan supports clustering, replication, and persistence, and exposes REST and Hot Rod endpoints so applications can read and write data with low latency at scale.


Try It Out

To take the Minimus Infinispan image for a test run, start a server and interact with it over its REST API.

Start the server

We will want to mount a data directory to persist cluster state across restarts. Since the image runs as the non-root user 65532, we need to first create the data directory and grant it write access:

mkdir -p datadir && chown -R 65532:65532 datadir

Next, run the Infinispan server, creating an admin user with the USER and PASS environment variables and mounting the data directory:

docker run -d --name minimus-infinispan \
-p 11222:11222 \
-e USER="admin" -e PASS="changeme" \
-v $(pwd)/datadir:/opt/infinispan/server/data \
reg.mini.dev/infinispan

Check the logs to confirm the server has started:

docker logs -f minimus-infinispan

You should see logs that end with a confirmation such as:

INFO  [o.i.SERVER] ISPN080001: Infinispan Server 16.2.1 started 

Create a cache

Use the REST API to create a distributed cache called mycache:

curl -u admin:changeme --digest -X POST \
"http://localhost:11222/rest/v2/caches/mycache?template=org.infinispan.DIST_SYNC"

Add and retrieve a cache entry

Write a key-value pair to the cache:

curl -u admin:changeme --digest -X POST \
http://localhost:11222/rest/v2/caches/mycache/mykey \
-H "Content-Type: text/plain" \
-d "myvalue"

Read the value back:

curl -u admin:changeme --digest -X GET \
http://localhost:11222/rest/v2/caches/mycache/mykey

You should see myvalue returned.


Technical Considerations

The Infinispan image provided by Minimus is a slim, security-hardened alternative to the public image.

Infinispan built by Minimus:

  1. Runs as a non-root user by default for a security-first approach that protects against privilege escalation attacks.
  2. Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.

The Payoff

A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.


Terms & Info

Trademark

This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.

Disclaimer

Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.