Giter Site home page Giter Site logo

Comments (6)

davsclaus avatar davsclaus commented on August 26, 2024

It should be similar to what the tomcat docker image does
https://github.com/ConSol/docker-appserver/blob/master/tomcat/8.0/Dockerfile

from jube.

davsclaus avatar davsclaus commented on August 26, 2024

Got a basic vanilla tomcat 8 up and running. Adjusting it to configure http/https port is to be done.

from jube.

davsclaus avatar davsclaus commented on August 26, 2024

We need to be able to configure the HTTP/HTTPS port Tomcat should use

[14:15:38]  <+jstrachan>     I remember searching stackoverflow a while back and I think tomcat supports ${foo.bar} type stuff so we could have a custom server.xml with env vars inside I *think*
[14:15:51]  <+jstrachan>     if not we'll have to have a script to do it at install/start time
[14:16:00]  <davsclaus>  ah
[14:18:39]   iocanel ([email protected]) joined the channel.
[14:18:39]   iocanel ([email protected]) left IRC. (Changing host)
[14:18:39]   iocanel (~iocanel@redhat/jboss/iocanel) joined the channel.
[14:19:43]  <+jstrachan>     it definitely supports system properties http://java-monitor.com/forum/showthread.php?t=838 not sure if env vars work too
[14:19:46]  <+jstrachan>     am hoping they do ;)
[14:20:24]  <+jstrachan>     The Tomcat configuration files support Apache Ant style variable substitution. A system property with the name propname may be used in a configuration file using the syntax ${propname}. All system properties are available including those set using the -D syntax, those automatically made available by the JVM and those configured in the $CATALINA_BASE/conf/catalina.properties file.
[14:20:39]  <+jstrachan>     wonder if we can write env vars into the properties file?
[14:22:38]  <+jstrachan>     I guess we could expose the common env vars as JAVA_OPTS or something
[14:23:01]  <+jstrachan>     JAVA_OPTS=-Dhttp.port=$HTTP_PORT -Ddebug.port=$DEBUG_PORT ...
[14:23:11]  <+jstrachan>     then use ${http.port} in the server.xml
[14:23:22]  <+jstrachan>     it'd be easier if we could just refer direct to env vars though ;)

from jube.

davsclaus avatar davsclaus commented on August 26, 2024

Oh looks like Tomcat also need a port for shutdown command

<Server port="8005" shutdown="SHUTDOWN">

from jube.

davsclaus avatar davsclaus commented on August 26, 2024

Also details here
http://stackoverflow.com/questions/8254543/tomcat-how-to-specify-properties-that-can-be-expanded-in-server-xml

from jube.

jstrachan avatar jstrachan commented on August 26, 2024

its working fine now for version 2.0.2; we just need to rename it to tomcat-8.0 to match the docker image - will do that after the 2.0.1 release of the quickstarts...

from jube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.