title: Having a custom catalina.sh when using a tomcat image from Docker
body: <p>I'm currently using Dockerfile to create Tomcat 6.0.44. It looks like this:</p>
  
  <pre><code>FROM tomcat:6.0.44-jre7
  
  ...
  
  ADD catalina.sh /usr/local/tomcat/bin
  </code></pre>
  
  <p>Building the image from the Dockerfile is fine, but when I go to run it I get the following error:</p>
  
  <pre><code>exec: "catalina.sh": executable file not found in $PATH.
  </code></pre>
  
  <p>Any idea of how to fix this?</p>
  
  <p>What I'm trying to do is pass in this parameter <code>-DentityExpansionLimit=100000</code>. Is there an easier way of doing it than in the <code>catalina.sh</code>? </p>
  
  <p>Any help/suggestions would be greatly appreciated.</p>
  
  <p>EDIT:
  I'm running a Redhat instance on EC2, and using Docker to extend a tomcat 6 image.</p>