Setting ulimit to a elasticsearch container #34
Unanswered
marciomanske
asked this question in
Q&A
Replies: 1 comment
-
Hey @marciomanske, Currently the supported configurations for the non docker-compose files can be seen here. We don't support ulimits right now. This could be a nice addition to the library. Please feel free to create an MR if you have the time and the team can review / merge it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Is there any way to set extra parameters for the container setup ? For instance, the ulimits like in the docker-compose file ?
...
ulimits:
memlock:
soft: -1
hard: -1
...
For the java version of testcontainers, we have the method "withCreateContainerCmdModifier" that is applied before the container creation.
I have a test where I need to start three containers: postgres, rabbitmq, and elasticsearch. As rabbitmq can't be started using the docker-compose file, I have to use the jest-testcontainers-config.js to describe the containers, and then, I couldn't find a way to set the ulimits.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions