carrotdata / memcarrot

Memcarrot: A caching server fully compatible with memcached protocol, offering superior memory utilization (memory overhead is as low as 8 bytes per object), real-time data compression for keys and values, efficient handling of expired items, zero internal and external memory fragmentation, intelligent data tiering and complete persistence support.
https://trycarrots.io
Other
4 stars 0 forks source link

[TASK] Docker image #20

Closed VladRodionov closed 1 month ago

VladRodionov commented 4 months ago

Goals:

kzheludkov commented 3 months ago
  1. Find minimum size for Linux which allows us to run server (must pass all tests, maven required) currently we uses standard minimal JRE 11 openjdk:11-jre-slim

  2. Use minimized JRE version (ticket will open) currently we uses standard minimal JRE 11 openjdk:11-jre-slim

  3. Allows to start image with a custom server's configuration Please see README.md

kzheludkov commented 3 months ago

client test though error on Docker

[INFO] Running com.carrotdata.memcarrot.TestSimpleClient [ERROR] Tests run: 19, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 388.9 s <<< FAILURE! -- in com.carrotdata.memcarrot.TestSimpleClient [ERROR] com.carrotdata.memcarrot.TestSimpleClient.testIncrGetMulti -- Time elapsed: 101.0 s <<< FAILURE! java.lang.AssertionError: at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertTrue(Assert.java:54) at com.carrotdata.memcarrot.TestSimpleClient.testIncrGetMulti(TestSimpleClient.java:747) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

VladRodionov commented 3 months ago

It can happen if server is slow, there are some time-related checks, which can fail in this case. Have you tried w/o docker?

kzheludkov commented 3 months ago

I am investigating. We need create org in DockerHub https://hub.docker.com/billing/core/purchase?type=organization

Also, better name image as memcached-carrot. It will be in search for any memcached products in DockerHub. Where official docker image is memcached:latest

kzheludkov commented 1 month ago

Finally we stood up with bellsoft/liberica-openjre-alpine:21.0.4-9-aarch64 and bellsoft/liberica-openjre-alpine:21.0.4-9-x86-64