I am using the KeyDB image that Fly created. It has been working great -
I am curious if anyone has had any experience adding ModJS to KeyDB, and if so, how did it do.
Here is the ModJS repo that lets you add it to KeyDB.
Looking at the example KeyDB Dockerfile, I can see that they copy
modjs.so over, but I am unclear from where since it looks like they created an empty folder just before it. Is
modjs.so part of the default keydb image already?
# Use the latest KeyDB Docker Image and add ModJS layer FROM eqalpha/keydb:latest RUN mkdir -p /usr/lib/keydb/modules # Copy over precompiled ubuntu18.04 module along with latest bootstrap.js COPY modjs.so /usr/lib/keydb/modules COPY bootstrap.js /usr/lib/keydb/modules VOLUME /scripts # Call module to load with keydb-server CMD ["keydb-server", "/etc/keydb/keydb.conf", "--loadmodule", "/usr/lib/keydb/modules/modjs.so"]
I am still new to Docker, so I am fairly confused about how the add this. Especially since the Fly repo for KeyDB add Prometheus and Hivemind which makes it a little more confusing. Because those are custom scripts instead of just running KeyDB directly.