-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set the shm_size for oracle xe #952
Comments
I am also hitting the exception Here are the logs from Docker
|
The change in #957 makes sense of course. It's working for me with image |
I am not using the wnameless docker image -- i've built my own docker image according to the Oracle GitHub documentation which I've linked in the pull-request;
Looking at his source; he's commented out
Given that you should be able to provide your own image; I think this is a worthwhile change still. |
Yeah, I think it makes sense to do this for the OracleContainer class. Sent with GitHawk |
Someone might want to run their own Oracle container not through the
provided testcontainer Oracle class -- I think exposing the API through
GenericContainer is the correct approach.
It's set the ground work for any other HostConfig variables too.
…On Sat, Nov 10, 2018, 1:07 AM Richard North ***@***.*** wrote:
Yeah, I think it makes sense to do this for the OracleContainer class.
I’m just wondering if the solution should be to keep Testcontainers API
as-is, and have the OracleContainer class use the docker-java API
specifically to request shared memory...
Sent with GitHawk <http://githawk.com>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#952 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAk7jj8QesrqjjSnC5DN3HU7Rru5l0POks5utpc4gaJpZM4YOTSW>
.
|
My oracle xe container is currently not starting because of a lack of shared memory:
"A database XE container needs at least 1 GB of shared memory (/dev/shm)."
My problem here: How can I set the shm_size (shmSize) for OracleContainer respectively GenericContainer?
I've already tried: .withCreateContainerCmdModifier(cmd -> cmd.withMemory((long) 4 * 1024 * 1024)).
Also tried some settings within the testcontainers.properties. Unfortunately I've not found what params are available and how to set it here.
Any help welcome. Thanks.
The text was updated successfully, but these errors were encountered: