docker-images icon indicating copy to clipboard operation
docker-images copied to clipboard

use /dev/urandom for weblogic:12.1.3-dev image

Open talberto-zz opened this issue 11 years ago • 3 comments

The dockerfile used for building the image oracle/weblogic:12.1.3-dev defines but doesn't use the env var CONFIG_JVM_ARGS. The result is that weblogic takes 10 mins to start (in my machine) if we use the image weblogic:12.1.3-dev as the base image.

I propose adding the definition of the env var to the .bashrc file using something like that in the Dockerfile:

echo "export CONFIG_JVM_ARGS=$CONFIG_JVM_ARGS" >> ~/.bashrc

talberto-zz avatar Jul 22 '15 11:07 talberto-zz

Thanks @Djelibeybi for calling my attention to this one. I'll be reviewing by the end of this week. Likely to merge into the sample code since it looks to be a reasonable configuration. Will test though.

Thanks @talberto for your suggestion.

brunoborges avatar Jul 23 '15 04:07 brunoborges

I actually had to also set the same configuration when starting the domain (after domain creation), otherwise the startup of the domain was taking way too long (+10 mins). In order to do that I added the following in the Dockerfile for domain creation (in samples/12c-domain):

ENV JAVA_OPTIONS -Djava.security.egd=file:///dev/./urandom

Also at same place I have added remote debugging information like -Xdebug -Xnoagent...

ovanekem avatar Aug 11 '15 09:08 ovanekem

I will add the JAVA_OPTIONS but I will leave the debugging paramaters out since this is a sample and users should come up with their own.

Thanks @ovanekem

brunoborges avatar Aug 11 '15 13:08 brunoborges