openshift-quickstart-tomcat

vedi i link da Romain

actually TomEE is not supported by OpenShift itself but using the diy
cartridge and using
https://github.com/openshift/openshift-tomcat-quickstart/ replacing
https://github.com/openshift/openshift-tomcat-quickstart/tree/master/diy/tomcat
by
tomee binaries it works fine

http://comments.gmane.org/gmane.comp.java.openejb.user/10660

 

https://github.com/openshift-quickstart/openshift-tomcat-quickstart

parte da sostituire è la seguente. sostuituire tomcat con tomee se si vuole installare tomee .

Ovviamente se la cartella dentro diy si chiamaerà tomee invece di tomcat , bisognerà sostiruire i riferimenti nella cartella .openshift/action_hooks/ nei files start,deploy,stop.0

Ovviamente nel file start si possono impostare le sostituzioni col comando sed -ig  dei valori per eventuali riferimentoi a variabili di ambiente oltre che in server.xml anche in tomee.xml .

 

 


istruzioni riportate dal tomcat quick start

 https://github.com/openshift-quickstart/openshift-tomcat-quickstart

 

Run your Tomcat on OpenShift

This git repository helps you get up and running quickly with a Tomcat 7.0.42 installation on OpenShift.

Create a Do It Yourself (DIY) app on OpenShift

Create an account and install the command-line client tools.

Create a DIY application: rhc app create tomcat diy-0.1

Get Tomcat running

Grab this quickstart project and make it work for you!

cd tomcat
git remote add upstream -m master git://github.com/openshift-quickstart/openshift-tomcat-quickstart.git
git pull -s recursive -X theirs upstream master
git push

That’s it, you can now checkout your tomcat at: http://tomcat-$yournamespace.rhcloud.com

By placing WARs (either WAR archives or exploded WARs) in the diy/tomcat/webapps folder, those applications will be deployed and redeployed upon each git push. Likewise, applications (including the sample applications provided by Tomcat) can be deleted from that folder so they will no longer be deployed.

The default managing account is tomcat/openshift; this can be changed by altering the diy/tomcat/conf/tomcat-users.xml file, committing the change within your secure OpenShift Git account and issuing another git push.

Forking this Quickstart to use a newer Tomcat version

See here for information.

License

This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 http://creativecommons.org/publicdomain/zero/1.0/


 

Come aggiornare a una versione di tomcat o tomee piu nuova.l

 

https://github.com/openshift-quickstart/openshift-tomcat-quickstart/blob/master/HowToUpdate.md

 


uso dei comandi grep e sed per sostituire oarole nei fiel di testo

 

http://www.isaacsukin.com/news/2013/06/command-line-tip-replace-word-all-files-directory

https://en.wikipedia.org/wiki/Sed#Samples

 


 

git rimuovere file

http://stackoverflow.com/questions/2047465/how-can-i-delete-a-file-from-git-repo


Git su vogella


http://www.vogella.com/tutorials/Git/article.html

 


 

 

 

 

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: