Comments (6)
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.
Got a basic vanilla tomcat 8 up and running. Adjusting it to configure http/https port is to be done.
from jube.
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.
Oh looks like Tomcat also need a port for shutdown command
<Server port="8005" shutdown="SHUTDOWN">
from jube.
Also details here
http://stackoverflow.com/questions/8254543/tomcat-how-to-specify-properties-that-can-be-expanded-in-server-xml
from jube.
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)
- Jube should use port range for allocating ports
- Jube image is not build for a project of package type 'pom' HOT 4
- replace HostName -> Minion in jube
- Failed to create snapshot ... http://localhost:8585/api/v1beta1/services: Invalid argument HOT 4
- generate unique host ports for each service
- jube images break with spring fat jars - due to maven ordering HOT 1
- jube should have an upper limit of retries if an image fails to start...
- add incrementing resourceVersion to the REST API for easier caching in hawtio
- support the /api/v1betaN/proxy/services/$service/path and /api/v1betaN/proxy/pods/$podId:$port/path REST APIs from Kubernetes HOT 5
- migrate to using the hawtio 2.x UI inside jube
- Classpath issue makes Jube fails to start HOT 1
- Jube maven plugin to be able to auto download the image dependency its using HOT 1
- a pure java kubelet for working with kubernetes / OpenShift?
- Running quickstart fatjar on jube on windows fails - not sure maven/* works HOT 2
- Apps in app library does not start on windows HOT 2
- Use hawtio v2 instead of old v1 for jube HOT 14
- Move the FAQ from jube old website to fabric8
- Use 2.2-SNAPSHOT instead of 2.0-SNAPSHOT
- Is deployment in the 2.1.11 release broken? HOT 5
- jube report nullpointerexception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jube.