Skip to content

comworkio/shmwrapper

Repository files navigation

Shared memory simple wrapper

Table of content

[[TOC]]

Description

Use shared memory as a cache with keys and values.

This project aims to check if containers can be able to share IPC's host and if that is natively the case for containers accross the same kubernetes pod.

Spoiler: yes !

For the french speakers, here's the demo on Youtube: https://youtu.be/2fBSRLDvP-U

Git repositories

Getting started

Build the command

$ make all

Getting help

$ ./shmwrapper -h

Put a value in the shared memory

$ ./shmwrapper -w foo bar

Get a value in the shared memory

$ ./shmwrapper -r foo
bar

Remove a value in the shared memory

$ ./shmwrapper -c foo

Testing with containers

Testing with docker-compose

$ docker-compose -f docker-compose-test.yml up

Testing with kubernetes

See this md file

Test with ready to use hub docker images

See this image on docker hub

The image is providing tags for x86 and arm architecture.

You can also test that both architecture are working on a MacOS Docker desktop:

$ docker-compose -f docker-compose-test-m1.yml up

This will work both on a Mac M1 or intel ship:

m1-test

But not on a CentOS x86 (you can see that the arm version is not working):

x86-centos-test

Nor on a raspberrypi:

raspberrypi-test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published