Starting on a puppet Railo-jetty module and deploying it - jetty

I'm starting on writing a puppet module to install deploy and manage Railo with jetty using runit
... Any help would be greatly appreciated i know the basis of
it should have ...
We need a zip file railo express
unpack the zip
tell the system to start the start.sh in the folder
keep it running and accessible through index.cfm page
stop the server by calling stop.sh in the directory
So to start Thanks

Related

How to add a second web app with jetty alongside with geoserver?

I deployed the Platform Independent Binary of GeoServer on ubuntu. To launch geoserver, I would just run this script /usr/share/geoserver/bin/startup.sh
So no jetty is actually installed. Geoserver web app can be accessbile via http://localhost:8080/geoserver/web
I wonder how I can configure a second web app which takes this path http://localhost:8080/upload/index.html
Ideally, I would like python and perhaps PHP are supported.
Any tips is appreciated. Thanks.
You can add any other war files to geoserver_dir/webaps/ and Jetty will unpack and run them like any other servlet.
I have no idea how you would add python and PHP to that set up. Maybe you would be better off looking at running tomcat and apache and using the GeoServer war file there.

Deploying CAR files like RPM

I am working with WSO2 ESB and I would like to build my .car project like RPM to deploy on Redhat servers.
I have several .car project and I have to manage dependencies between them. I have thought that it is a good idea to do it.
Has anybody tired this before? Where can I find more information about this? Should I use hot-deploys putting .car file into /repository/deployment/server/carbonapps directory?
Thanks in advance.
You can use hot deploy putting .car files into carbonapps, but take care of downloading them on the ESB local filesystem before moving them to carbonapps so that the ESB don't start deploying them before the end of the download.
You can develop your own script and rely on a config file defining dependencies so that your numerous .car are deployed in the right order
You can use maven and plugin org.wso2.maven:maven-car-plugin that offers you a way to package and deploy your .car from a remote host with something like mvn clean deploy -Dhost=esbhostname -Dport=9443
Hope it gives you some ideas to achieve your need...

how can i setting up jvm heap size in jetty6.1.24

I am using jetty6.1.26, and I deploy an web application at webapps folder directly. Because my application have lot of jars, so when jetty startup
java.lang.OutOfMemoryError: PermGen space
I am also using tomcat6, and just put the blew line at the first line of catline.sh ,that will be ok.
JAVA_OPTS="$JAVA_OPTS -server -XX:PermSize=64M -XX:MaxPermSize=1024m"
now, how can I setting up java opts in jetty? Thanks in advance.
Ps: I modified jetty-service.conf, and update
wrapper.java.maxmemory=1024
it still not working. Anyone who has good ideas ,thanks
How do you launch jetty?
If you are on Ubuntu and installed jetty with apt-get you should have a file /etc/default/jetty where you can edit JAVA_OPTIONS

Installing binary package on heroku

I want to deploy a binary package on heroku for use by my application
I am using the new Cedar stack, the official documentation states that it is recommended to use the vulcan tool for building binaries for heroku
So , i just did that, and the result was a tar.gz file containing a mini linux file system
Now what? how to deploy that binary package to heroku?
all the available documentation refer to using vulcan with buildpacks to create new applications
but, i want to deploy this binary package to an existing application
The question is , How can i do that?
should i put it in my git repo and upload it? if so, where should i put it? and how to unpack it and deploy it correctly on heroku to be available and correctly configured?
thanks
Joe
You need to incorporate that compiled output into a buildpack. See https://devcenter.heroku.com/articles/buildpack-binaries
Start with the buildpack for the language you're working in -- ruby / python / node. You'll probably just unpack the tarball into the a subdirectory of the vendor directory in the buildpack. Push your forked buildpack up to github and then point heroku to the buildpack.

deploying scalatra onto Jetty

How does one deploy scala or scalatra onto Jetty servlet container? Does anyone have experience or can point me to some resources online?
If you're using sbt, run the package command from within the sbt shell. This will create you a war file in the target dir. You can drop that into jetty's webapps directory and configure a context xml file in its contexts directory.
If you're using maven, I believe the command you want is mvn package.
Are you using Simple Build Tool (SBT) for your project? If you do, it's as easy as running "sbt jetty"
Check it out: http://code.google.com/p/simple-build-tool/